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/BlockSupportType.h"
8#include "mc/world/level/block/BlockType.h"
9
10// auto generated forward declare list
11// clang-format off
12class AABB;
13class BaseGameVersion;
14class Block;
15class BlockPos;
18// clang-format on
19
20class ThinFenceBlock : public ::BlockType {
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<1, 1, bool const> mDoesNotCollideWithCamera;
25 // NOLINTEND
26
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 virtual void addAABBs(
31 ::Block const& block,
32 ::IConstBlockSource const& region,
33 ::BlockPos const& blockPos,
34 ::AABB const* intersectTestBox,
35 ::std::vector<::AABB>& inoutBoxes
36 ) const /*override*/;
37
38 virtual bool addCollisionShapes(
39 ::Block const& block,
40 ::IConstBlockSource const& region,
41 ::BlockPos const& pos,
42 ::AABB const* intersectTestBox,
43 ::std::vector<::AABB>& inoutBoxes,
45 ) const /*override*/;
46
47 virtual ::AABB const& getVisualShapeInWorld(
48 ::Block const& block,
49 ::IConstBlockSource const& region,
50 ::BlockPos const& pos,
51 ::AABB& bufferAABB
52 ) const /*override*/;
53
54 virtual ::AABB getCollisionShape(
55 ::Block const& block,
56 ::IConstBlockSource const& region,
57 ::BlockPos const& pos,
59 ) const /*override*/;
60
61 virtual bool getCollisionShapeForCamera(
62 ::AABB& outAABB,
63 ::Block const& block,
64 ::IConstBlockSource const& region,
65 ::BlockPos const& pos
66 ) const /*override*/;
67
68 virtual ::AABB const& getOutline(
69 ::Block const& block,
70 ::IConstBlockSource const& region,
71 ::BlockPos const& pos,
72 ::AABB& bufferValue
73 ) const /*override*/;
74
75 virtual bool canProvideSupport(::Block const&, uchar face, ::BlockSupportType type) const /*override*/;
76
77 virtual bool isThinFenceBlock() const /*override*/;
78
79 virtual bool breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const /*override*/;
80
81 virtual ~ThinFenceBlock() /*override*/;
82 // NOLINTEND
83
84public:
85 // static variables
86 // NOLINTBEGIN
87 MCAPI static ::BaseGameVersion const& THIN_FENCE_DOESNT_BREAK_FALLING_BLOCK_VERSION();
88 // NOLINTEND
89
90public:
91 // destructor thunk
92 // NOLINTBEGIN
93 MCFOLD void $dtor();
94 // NOLINTEND
95
96public:
97 // virtual function thunks
98 // NOLINTBEGIN
99 MCAPI void $addAABBs(
100 ::Block const& block,
101 ::IConstBlockSource const& region,
102 ::BlockPos const& blockPos,
103 ::AABB const* intersectTestBox,
104 ::std::vector<::AABB>& inoutBoxes
105 ) const;
106
107 MCFOLD bool $addCollisionShapes(
108 ::Block const& block,
109 ::IConstBlockSource const& region,
110 ::BlockPos const& pos,
111 ::AABB const* intersectTestBox,
112 ::std::vector<::AABB>& inoutBoxes,
114 ) const;
115
116 MCAPI ::AABB const& $getVisualShapeInWorld(
117 ::Block const& block,
118 ::IConstBlockSource const& region,
119 ::BlockPos const& pos,
120 ::AABB& bufferAABB
121 ) const;
122
123 MCAPI ::AABB $getCollisionShape(
124 ::Block const& block,
125 ::IConstBlockSource const& region,
126 ::BlockPos const& pos,
128 ) const;
129
130 MCAPI bool $getCollisionShapeForCamera(
131 ::AABB& outAABB,
132 ::Block const& block,
133 ::IConstBlockSource const& region,
134 ::BlockPos const& pos
135 ) const;
136
137 MCFOLD ::AABB const& $getOutline(
138 ::Block const& block,
139 ::IConstBlockSource const& region,
140 ::BlockPos const& pos,
141 ::AABB& bufferValue
142 ) const;
143
144 MCFOLD bool $canProvideSupport(::Block const&, uchar face, ::BlockSupportType type) const;
145
146 MCFOLD bool $isThinFenceBlock() const;
147
148 MCAPI bool $breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const;
149
150
151 // NOLINTEND
152
153public:
154 // vftables
155 // NOLINTBEGIN
156 MCAPI static void** $vftable();
157 // NOLINTEND
158};
Definition AABB.h:18
Definition BaseGameVersion.h:8
Definition BlockPos.h:19
Definition Block.h:43
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
Definition ThinFenceBlock.h:20
Definition optional_ref.h:10