LeviLamina
Loading...
Searching...
No Matches
AirBlock.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
9// auto generated forward declare list
10// clang-format off
11class AABB;
12class Actor;
13class Block;
14class BlockPos;
15class BlockSource;
18class Player;
20// clang-format on
21
22class AirBlock : public ::BlockLegacy {
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 // vIndex: 10
27 virtual ::AABB const&
28 getVisualShapeInWorld(::Block const&, ::IConstBlockSource const&, ::BlockPos const&, ::AABB&) const /*override*/;
29
30 // vIndex: 11
31 virtual ::AABB const& getVisualShape(::Block const&, ::AABB&) const /*override*/;
32
33 // vIndex: 9
34 virtual ::AABB const&
35 getOutline(::Block const&, ::IConstBlockSource const&, ::BlockPos const&, ::AABB& bufferValue) const /*override*/;
36
37 // vIndex: 14
38 virtual bool isObstructingChests(::BlockSource& region, ::BlockPos const& pos, ::Block const& thisBlock) const
39 /*override*/;
40
41 // vIndex: 8
42 virtual void addAABBs(
43 ::Block const& block,
44 ::IConstBlockSource const& region,
45 ::BlockPos const& pos,
46 ::AABB const* intersectTestBox,
47 ::std::vector<::AABB>& inoutBoxes
48 ) const /*override*/;
49
50 // vIndex: 7
51 virtual bool addCollisionShapes(
52 ::Block const& block,
53 ::IConstBlockSource const& region,
54 ::BlockPos const& pos,
55 ::AABB const* intersectTestBox,
56 ::std::vector<::AABB>& inoutBoxes,
58 ) const /*override*/;
59
60 // vIndex: 5
61 virtual ::AABB
63 const /*override*/;
64
65 // vIndex: 57
66 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
67 /*override*/;
68
69 // vIndex: 78
70 virtual bool mayPick() const /*override*/;
71
72 // vIndex: 77
73 virtual bool mayPick(::BlockSource const& region, ::Block const& block, bool liquid) const /*override*/;
74
75 // vIndex: 80
76 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const /*override*/;
77
78 // vIndex: 79
79 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
80
81 // vIndex: 82
82 virtual bool tryToPlace(
83 ::BlockSource& region,
84 ::BlockPos const& pos,
85 ::Block const& block,
86 ::ActorBlockSyncMessage const* syncMsg
87 ) const /*override*/;
88
89 // vIndex: 85
90 virtual void
91 destroy(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, ::Actor* entitySource) const
92 /*override*/;
93
94 // vIndex: 89
95 virtual ::Block const* playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const
96 /*override*/;
97
98 // vIndex: 0
99 virtual ~AirBlock() /*override*/ = default;
100 // NOLINTEND
101
102public:
103 // destructor thunk
104 // NOLINTBEGIN
105
106 // NOLINTEND
107
108public:
109 // virtual function thunks
110 // NOLINTBEGIN
111 MCFOLD ::AABB const&
112 $getVisualShapeInWorld(::Block const&, ::IConstBlockSource const&, ::BlockPos const&, ::AABB&) const;
113
114 MCFOLD ::AABB const& $getVisualShape(::Block const&, ::AABB&) const;
115
116 MCAPI ::AABB const&
117 $getOutline(::Block const&, ::IConstBlockSource const&, ::BlockPos const&, ::AABB& bufferValue) const;
118
119 MCFOLD bool $isObstructingChests(::BlockSource& region, ::BlockPos const& pos, ::Block const& thisBlock) const;
120
121 MCFOLD void $addAABBs(
122 ::Block const& block,
123 ::IConstBlockSource const& region,
124 ::BlockPos const& pos,
125 ::AABB const* intersectTestBox,
126 ::std::vector<::AABB>& inoutBoxes
127 ) const;
128
129 MCFOLD bool $addCollisionShapes(
130 ::Block const& block,
131 ::IConstBlockSource const& region,
132 ::BlockPos const& pos,
133 ::AABB const* intersectTestBox,
134 ::std::vector<::AABB>& inoutBoxes,
136 ) const;
137
138 MCFOLD ::AABB
140 const;
141
142 MCFOLD bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
143
144 MCFOLD bool $mayPick() const;
145
146 MCFOLD bool $mayPick(::BlockSource const& region, ::Block const& block, bool liquid) const;
147
148 MCFOLD bool $mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const;
149
150 MCFOLD bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
151
152 MCFOLD bool $tryToPlace(
153 ::BlockSource& region,
154 ::BlockPos const& pos,
155 ::Block const& block,
156 ::ActorBlockSyncMessage const* syncMsg
157 ) const;
158
159 MCFOLD void
160 $destroy(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, ::Actor* entitySource) const;
161
162 MCFOLD ::Block const* $playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const;
163 // NOLINTEND
164
165public:
166 // vftables
167 // NOLINTBEGIN
168 MCAPI static void** $vftable();
169 // NOLINTEND
170};
Definition AABB.h:16
Definition Actor.h:104
Definition AirBlock.h:22
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 Player.h:119
Definition optional_ref.h:10
Definition ActorBlockSyncMessage.h:10