LeviLamina
Loading...
Searching...
No Matches
ThinFenceBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/optional_ref.h"
7#include "mc/world/level/block/BlockLegacy.h"
8#include "mc/world/level/block/BlockSupportType.h"
9
10// auto generated forward declare list
11// clang-format off
12class AABB;
13class BaseGameVersion;
14class Block;
15class BlockPos;
16class BlockSource;
19// clang-format on
20
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<1, 1, bool const> mDoesNotCollideWithCamera;
26 // NOLINTEND
27
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 // vIndex: 8
32 virtual void addAABBs(
33 ::Block const& block,
34 ::IConstBlockSource const& region,
35 ::BlockPos const& pos,
36 ::AABB const* intersectTestBox,
37 ::std::vector<::AABB>& inoutBoxes
38 ) const /*override*/;
39
40 // vIndex: 7
41 virtual bool addCollisionShapes(
42 ::Block const& block,
43 ::IConstBlockSource const& region,
44 ::BlockPos const& pos,
45 ::AABB const* intersectTestBox,
46 ::std::vector<::AABB>& inoutBoxes,
48 ) const /*override*/;
49
50 // vIndex: 10
51 virtual ::AABB const& getVisualShapeInWorld(
52 ::Block const& block,
53 ::IConstBlockSource const& region,
54 ::BlockPos const& pos,
55 ::AABB& bufferAABB
56 ) const /*override*/;
57
58 // vIndex: 5
59 virtual ::AABB getCollisionShape(
60 ::Block const& block,
61 ::IConstBlockSource const& region,
62 ::BlockPos const& pos,
64 ) const /*override*/;
65
66 // vIndex: 6
67 virtual bool getCollisionShapeForCamera(
68 ::AABB& outAABB,
69 ::Block const& block,
70 ::IConstBlockSource const& region,
71 ::BlockPos const& pos
72 ) const /*override*/;
73
74 // vIndex: 9
75 virtual ::AABB const& getOutline(
76 ::Block const& block,
77 ::IConstBlockSource const& region,
78 ::BlockPos const& pos,
79 ::AABB& bufferValue
80 ) const /*override*/;
81
82 // vIndex: 22
83 virtual bool canProvideSupport(::Block const&, uchar face, ::BlockSupportType type) const /*override*/;
84
85 // vIndex: 24
86 virtual bool canConnect(::Block const& otherBlock, uchar, ::Block const&) const /*override*/;
87
88 // vIndex: 33
89 virtual bool isThinFenceBlock() const /*override*/;
90
91 // vIndex: 13
92 virtual bool
93 getLiquidClipVolume(::Block const& block, ::BlockSource& region, ::BlockPos const& pos, ::AABB& includeBox) const
94 /*override*/;
95
96 // vIndex: 83
97 virtual bool breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const /*override*/;
98
99 // vIndex: 0
100 virtual ~ThinFenceBlock() /*override*/ = default;
101 // NOLINTEND
102
103public:
104 // static variables
105 // NOLINTBEGIN
106 MCAPI static ::BaseGameVersion const& THIN_FENCE_DOESNT_BREAK_FALLING_BLOCK_VERSION();
107 // NOLINTEND
108
109public:
110 // virtual function thunks
111 // NOLINTBEGIN
112 MCAPI void $addAABBs(
113 ::Block const& block,
114 ::IConstBlockSource const& region,
115 ::BlockPos const& pos,
116 ::AABB const* intersectTestBox,
117 ::std::vector<::AABB>& inoutBoxes
118 ) const;
119
120 MCFOLD bool $addCollisionShapes(
121 ::Block const& block,
122 ::IConstBlockSource const& region,
123 ::BlockPos const& pos,
124 ::AABB const* intersectTestBox,
125 ::std::vector<::AABB>& inoutBoxes,
127 ) const;
128
129 MCAPI ::AABB const& $getVisualShapeInWorld(
130 ::Block const& block,
131 ::IConstBlockSource const& region,
132 ::BlockPos const& pos,
133 ::AABB& bufferAABB
134 ) const;
135
136 MCAPI ::AABB $getCollisionShape(
137 ::Block const& block,
138 ::IConstBlockSource const& region,
139 ::BlockPos const& pos,
141 ) const;
142
143 MCAPI bool $getCollisionShapeForCamera(
144 ::AABB& outAABB,
145 ::Block const& block,
146 ::IConstBlockSource const& region,
147 ::BlockPos const& pos
148 ) const;
149
150 MCFOLD ::AABB const& $getOutline(
151 ::Block const& block,
152 ::IConstBlockSource const& region,
153 ::BlockPos const& pos,
154 ::AABB& bufferValue
155 ) const;
156
157 MCFOLD bool $canProvideSupport(::Block const&, uchar face, ::BlockSupportType type) const;
158
159 MCFOLD bool $canConnect(::Block const& otherBlock, uchar, ::Block const&) const;
160
161 MCFOLD bool $isThinFenceBlock() const;
162
163 MCFOLD bool
164 $getLiquidClipVolume(::Block const& block, ::BlockSource& region, ::BlockPos const& pos, ::AABB& includeBox) const;
165
166 MCAPI bool $breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const;
167 // NOLINTEND
168
169public:
170 // vftables
171 // NOLINTBEGIN
172 MCNAPI static void** $vftable();
173 // NOLINTEND
174};
Definition AABB.h:18
Definition BaseGameVersion.h:8
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:38
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition ThinFenceBlock.h:21
static MCAPI void ** $vftable()
Definition optional_ref.h:10