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;
17namespace BlockEvents { class BlockRandomTickEvent; }
18// clang-format on
19
20class DoubleSaplingBlock : public ::DoublePlantBlock {
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mSingleSaplingTree;
25 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mSingleSaplingTreeWithBeehive;
26 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mQuadrupleSaplingTree;
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 DoubleSaplingBlock();
32
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB& bufferAABB) const /*override*/;
37
38 virtual ::Block const* playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const
39 /*override*/;
40
41 virtual bool
42 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* entity, ::FertilizerType fertilizerType) const
43 /*override*/;
44
45 virtual ~DoubleSaplingBlock() /*override*/;
46 // NOLINTEND
47
48public:
49 // member functions
50 // NOLINTBEGIN
51 MCAPI DoubleSaplingBlock(
52 ::std::string const& nameId,
53 int id,
54 ::std::optional<::std::string> const& singleSaplingTree,
55 ::std::optional<::std::string> const& singleSaplingTreeWithBeehive,
56 ::std::optional<::std::string> const& quadrupleSaplingTree
57 );
58
59 MCAPI ::std::optional<::BlockPos>
60 _getQuadrupleSaplingOffset(::BlockSource const& region, ::BlockPos const& pos) const;
61
62 MCAPI void randomTick(::BlockEvents::BlockRandomTickEvent const& eventData) const;
63 // NOLINTEND
64
65public:
66 // constructor thunks
67 // NOLINTBEGIN
68 MCAPI void* $ctor(
69 ::std::string const& nameId,
70 int id,
71 ::std::optional<::std::string> const& singleSaplingTree,
72 ::std::optional<::std::string> const& singleSaplingTreeWithBeehive,
73 ::std::optional<::std::string> const& quadrupleSaplingTree
74 );
75 // NOLINTEND
76
77public:
78 // destructor thunk
79 // NOLINTBEGIN
80 MCAPI void $dtor();
81 // NOLINTEND
82
83public:
84 // virtual function thunks
85 // NOLINTBEGIN
86 MCAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB& bufferAABB) const;
87
88 MCAPI ::Block const* $playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const;
89
90 MCAPI bool
91 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* entity, ::FertilizerType fertilizerType) const;
92
93
94 // NOLINTEND
95
96public:
97 // vftables
98 // NOLINTBEGIN
99 MCNAPI static void** $vftable();
100 // NOLINTEND
101};
Definition AABB.h:18
Definition Actor.h:113
Definition BlockRandomTickEvent.h:16
Definition BlockPos.h:17
Definition BlockSource.h:71
Definition Block.h:41
Definition DoublePlantBlock.h:15
static MCAPI void ** $vftable()
Definition Player.h:129