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 getCollisionShape(
62 ::Block const&,
64 ::BlockPos const&,
66 ) const /*override*/;
67
68 // vIndex: 56
69 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
70 /*override*/;
71
72 // vIndex: 77
73 virtual bool mayPick() const /*override*/;
74
75 // vIndex: 76
76 virtual bool mayPick(::BlockSource const& region, ::Block const& block, bool liquid) const /*override*/;
77
78 // vIndex: 79
79 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const /*override*/;
80
81 // vIndex: 78
82 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
83
84 // vIndex: 81
85 virtual bool tryToPlace(
86 ::BlockSource& region,
87 ::BlockPos const& pos,
88 ::Block const& block,
89 ::ActorBlockSyncMessage const* syncMsg
90 ) const /*override*/;
91
92 // vIndex: 84
93 virtual void
94 destroy(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, ::Actor* entitySource) const
95 /*override*/;
96
97 // vIndex: 88
98 virtual ::Block const* playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const
99 /*override*/;
100
101 // vIndex: 0
102 virtual ~AirBlock() /*override*/ = default;
103 // NOLINTEND
104
105public:
106 // virtual function thunks
107 // NOLINTBEGIN
108 MCFOLD ::AABB const&
109 $getVisualShapeInWorld(::Block const&, ::IConstBlockSource const&, ::BlockPos const&, ::AABB&) const;
110
111 MCFOLD ::AABB const& $getVisualShape(::Block const&, ::AABB&) const;
112
113 MCAPI ::AABB const&
114 $getOutline(::Block const&, ::IConstBlockSource const&, ::BlockPos const&, ::AABB& bufferValue) const;
115
116 MCFOLD bool $isObstructingChests(::BlockSource& region, ::BlockPos const& pos, ::Block const& thisBlock) const;
117
118 MCFOLD void $addAABBs(
119 ::Block const& block,
120 ::IConstBlockSource const& region,
121 ::BlockPos const& pos,
122 ::AABB const* intersectTestBox,
123 ::std::vector<::AABB>& inoutBoxes
124 ) const;
125
126 MCFOLD bool $addCollisionShapes(
127 ::Block const& block,
128 ::IConstBlockSource const& region,
129 ::BlockPos const& pos,
130 ::AABB const* intersectTestBox,
131 ::std::vector<::AABB>& inoutBoxes,
133 ) const;
134
135 MCFOLD ::AABB $getCollisionShape(
136 ::Block const&,
137 ::IConstBlockSource const&,
138 ::BlockPos const&,
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 MCNAPI static void** $vftable();
169 // NOLINTEND
170};
Definition AABB.h:18
Definition Actor.h:103
Definition AirBlock.h:22
static MCAPI void ** $vftable()
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 Player.h:119
Definition optional_ref.h:10
Definition ActorBlockSyncMessage.h:8