Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
DoubleSaplingBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/FertilizerType.h"
7#include "mc/world/level/block/DoublePlantBlock.h"
8
9// auto generated forward declare list
10// clang-format off
11class AABB;
12class Actor;
13class Block;
14class BlockPos;
15class BlockSource;
16class Player;
17class Random;
18namespace BlockEvents { class BlockRandomTickEvent; }
19// clang-format on
20
21class DoubleSaplingBlock : public ::DoublePlantBlock {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mSingleSaplingTree;
26 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mSingleSaplingTreeWithBeehive;
27 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mQuadrupleSaplingTree;
28 // NOLINTEND
29
30public:
31 // prevent constructor by default
32 DoubleSaplingBlock();
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB& bufferAABB) const /*override*/;
38
39 virtual ::Block const* playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const
40 /*override*/;
41
42 virtual bool
43 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* entity, ::FertilizerType fertilizerType) const
44 /*override*/;
45
46 virtual ~DoubleSaplingBlock() /*override*/;
47 // NOLINTEND
48
49public:
50 // member functions
51 // NOLINTBEGIN
53 ::std::string const& nameId,
54 int id,
55 ::std::optional<::std::string> const& singleSaplingTree,
56 ::std::optional<::std::string> const& singleSaplingTreeWithBeehive,
57 ::std::optional<::std::string> const& quadrupleSaplingTree
58 );
59
60 MCNAPI ::std::optional<::BlockPos>
61 _getQuadrupleSaplingOffset(::BlockSource const& region, ::BlockPos const& pos) const;
62
63 MCNAPI bool _growSapling(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const;
64
65 MCNAPI void randomTick(::BlockEvents::BlockRandomTickEvent const& eventData) const;
66 // NOLINTEND
67
68public:
69 // constructor thunks
70 // NOLINTBEGIN
71 MCNAPI void* $ctor(
72 ::std::string const& nameId,
73 int id,
74 ::std::optional<::std::string> const& singleSaplingTree,
75 ::std::optional<::std::string> const& singleSaplingTreeWithBeehive,
76 ::std::optional<::std::string> const& quadrupleSaplingTree
77 );
78 // NOLINTEND
79
80public:
81 // destructor thunk
82 // NOLINTBEGIN
83 MCNAPI void $dtor();
84 // NOLINTEND
85
86public:
87 // virtual function thunks
88 // NOLINTBEGIN
89 MCNAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB& bufferAABB) const;
90
91 MCNAPI ::Block const* $playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const;
92
93 MCNAPI bool
94 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* entity, ::FertilizerType fertilizerType) const;
95
96
97 // NOLINTEND
98
99public:
100 // vftables
101 // NOLINTBEGIN
102 MCNAPI static void** $vftable();
103 // NOLINTEND
104};
Definition AABB.h:18
Definition Actor.h:116
Definition BlockRandomTickEvent.h:16
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
Definition DoublePlantBlock.h:15
MCAPI void randomTick(::BlockEvents::BlockRandomTickEvent const &eventData) const
MCAPI bool _growSapling(::BlockSource &region, ::BlockPos const &pos, ::Random &random) const
MCAPI::AABB const & $getVisualShape(::Block const &block, ::AABB &bufferAABB) const
MCAPI bool $onFertilized(::BlockSource &region, ::BlockPos const &pos, ::Actor *entity, ::FertilizerType fertilizerType) const
MCAPI void $dtor()
static MCAPI void ** $vftable()
MCAPI ::std::optional<::BlockPos > _getQuadrupleSaplingOffset(::BlockSource const &region, ::BlockPos const &pos) const
MCAPI void * $ctor(::std::string const &nameId, int id, ::std::optional<::std::string > const &singleSaplingTree, ::std::optional<::std::string > const &singleSaplingTreeWithBeehive, ::std::optional<::std::string > const &quadrupleSaplingTree)
MCAPI::Block const * $playerWillDestroy(::Player &player, ::BlockPos const &pos, ::Block const &block) const
MCAPI DoubleSaplingBlock(::std::string const &nameId, int id, ::std::optional<::std::string > const &singleSaplingTree, ::std::optional<::std::string > const &singleSaplingTreeWithBeehive, ::std::optional<::std::string > const &quadrupleSaplingTree)
Definition Player.h:131
Definition Random.h:10