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& blockPos,
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
60 getCollisionShape(::Block const& block, ::IConstBlockSource const& region, ::BlockPos const& pos, ::optional_ref<::GetCollisionShapeInterface const>)
61 const /*override*/;
62
63 // vIndex: 6
64 virtual bool getCollisionShapeForCamera(
65 ::AABB& outAABB,
66 ::Block const& block,
67 ::IConstBlockSource const& region,
68 ::BlockPos const& pos
69 ) const /*override*/;
70
71 // vIndex: 9
72 virtual ::AABB const&
73 getOutline(::Block const& block, ::IConstBlockSource const& region, ::BlockPos const& pos, ::AABB& bufferValue)
74 const /*override*/;
75
76 // vIndex: 23
77 virtual bool canProvideSupport(::Block const&, uchar face, ::BlockSupportType type) const /*override*/;
78
79 // vIndex: 25
80 virtual bool canConnect(::Block const& otherBlock, uchar, ::Block const&) const /*override*/;
81
82 // vIndex: 34
83 virtual bool isThinFenceBlock() const /*override*/;
84
85 // vIndex: 13
86 virtual bool
87 getLiquidClipVolume(::Block const& block, ::BlockSource& region, ::BlockPos const& pos, ::AABB& includeBox) const
88 /*override*/;
89
90 // vIndex: 84
91 virtual bool breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const /*override*/;
92
93 // vIndex: 0
94 virtual ~ThinFenceBlock() /*override*/ = default;
95 // NOLINTEND
96
97public:
98 // static variables
99 // NOLINTBEGIN
100 MCAPI static ::BaseGameVersion const& THIN_FENCE_DOESNT_BREAK_FALLING_BLOCK_VERSION();
101 // NOLINTEND
102
103public:
104 // destructor thunk
105 // NOLINTBEGIN
106
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& blockPos,
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
137 $getCollisionShape(::Block const& block, ::IConstBlockSource const& region, ::BlockPos const& pos, ::optional_ref<::GetCollisionShapeInterface const>)
138 const;
139
140 MCAPI bool $getCollisionShapeForCamera(
141 ::AABB& outAABB,
142 ::Block const& block,
143 ::IConstBlockSource const& region,
144 ::BlockPos const& pos
145 ) const;
146
147 MCFOLD ::AABB const&
148 $getOutline(::Block const& block, ::IConstBlockSource const& region, ::BlockPos const& pos, ::AABB& bufferValue)
149 const;
150
151 MCFOLD bool $canProvideSupport(::Block const&, uchar face, ::BlockSupportType type) const;
152
153 MCFOLD bool $canConnect(::Block const& otherBlock, uchar, ::Block const&) const;
154
155 MCFOLD bool $isThinFenceBlock() const;
156
157 MCFOLD bool
158 $getLiquidClipVolume(::Block const& block, ::BlockSource& region, ::BlockPos const& pos, ::AABB& includeBox) const;
159
160 MCAPI bool $breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const;
161 // NOLINTEND
162
163public:
164 // vftables
165 // NOLINTBEGIN
166 MCAPI static void** $vftable();
167 // NOLINTEND
168};
Definition AABB.h:16
Definition BaseGameVersion.h:13
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition ThinFenceBlock.h:21
Definition optional_ref.h:10