LeviLamina
Loading...
Searching...
No Matches
SaplingBlock.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/BushBlock.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class Block;
13class BlockPos;
14class BlockSource;
15class Random;
16// clang-format on
17
18class SaplingBlock : public ::BushBlock {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mSingleSaplingTree;
23 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mSingleSaplingTreeWithBeehive;
24 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mQuadrupleSaplingTree;
25 // NOLINTEND
26
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 // vIndex: 79
31 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
32
33 // vIndex: 137
34 virtual void randomTick(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const /*override*/;
35
36 // vIndex: 74
37 virtual bool
38 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const
39 /*override*/;
40
41 // vIndex: 76
42 virtual bool canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const
43 /*override*/;
44
45 // vIndex: 0
46 virtual ~SaplingBlock() /*override*/ = default;
47 // NOLINTEND
48
49public:
50 // member functions
51 // NOLINTBEGIN
52 MCAPI SaplingBlock(
53 ::std::string const& nameId,
54 int id,
55 ::std::optional<::std::string> singleSaplingTree,
56 ::std::optional<::std::string> singleSaplingTreeWithBeehive,
57 ::std::optional<::std::string> quadrupleSaplingTree
58 );
59
60 MCAPI bool _age(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const;
61
62 MCAPI ::std::optional<::BlockPos>
63 _getQuadrupleSaplingOffset(::BlockSource const& region, ::BlockPos const& pos) const;
64
65 MCAPI bool _placeFeature(
66 ::BlockSource& region,
67 ::BlockPos const& pos,
68 ::std::optional<::BlockPos> quadrupleSaplingOffset,
69 ::std::string const& featureName,
70 ::Random& random
71 ) const;
72
73 MCAPI bool _placeTree(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const;
74
75 MCAPI void _setBlockNoUpdate(
76 ::BlockSource& region,
77 ::BlockPos const& pos,
78 ::std::optional<::BlockPos> quadrupleSaplingOffset,
79 ::Block const& block
80 ) const;
81 // NOLINTEND
82
83public:
84 // constructor thunks
85 // NOLINTBEGIN
86 MCAPI void* $ctor(
87 ::std::string const& nameId,
88 int id,
89 ::std::optional<::std::string> singleSaplingTree,
90 ::std::optional<::std::string> singleSaplingTreeWithBeehive,
91 ::std::optional<::std::string> quadrupleSaplingTree
92 );
93 // NOLINTEND
94
95public:
96 // destructor thunk
97 // NOLINTBEGIN
98
99 // NOLINTEND
100
101public:
102 // virtual function thunks
103 // NOLINTBEGIN
104 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
105
106 MCAPI void $randomTick(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const;
107
108 MCAPI bool
109 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const;
110
111 MCFOLD bool $canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const;
112 // NOLINTEND
113
114public:
115 // vftables
116 // NOLINTBEGIN
117 MCAPI static void** $vftable();
118 // NOLINTEND
119};
Definition Actor.h:104
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition BushBlock.h:23
Definition Random.h:16
Definition SaplingBlock.h:18