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/BlockType.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 ::BlockType {
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 virtual ::AABB const&
27 getVisualShapeInWorld(::Block const&, ::IConstBlockSource const&, ::BlockPos const&, ::AABB&) const /*override*/;
28
29 virtual ::AABB const& getVisualShape(::Block const&, ::AABB&) const /*override*/;
30
31 virtual ::AABB const&
32 getOutline(::Block const&, ::IConstBlockSource const&, ::BlockPos const&, ::AABB& bufferValue) const /*override*/;
33
34 virtual bool isObstructingChests(::BlockSource& region, ::BlockPos const& pos, ::Block const& thisBlock) const
35 /*override*/;
36
37 virtual void addAABBs(
38 ::Block const& block,
39 ::IConstBlockSource const& region,
40 ::BlockPos const& pos,
41 ::AABB const* intersectTestBox,
42 ::std::vector<::AABB>& inoutBoxes
43 ) const /*override*/;
44
45 virtual bool addCollisionShapes(
46 ::Block const& block,
47 ::IConstBlockSource const& region,
48 ::BlockPos const& pos,
49 ::AABB const* intersectTestBox,
50 ::std::vector<::AABB>& inoutBoxes,
52 ) const /*override*/;
53
54 virtual ::AABB getCollisionShape(
55 ::Block const&,
57 ::BlockPos const&,
59 ) const /*override*/;
60
61 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
62 /*override*/;
63
64 virtual bool mayPick() const /*override*/;
65
66 virtual bool mayPick(::BlockSource const& region, ::Block const& block, bool liquid) const /*override*/;
67
68 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const /*override*/;
69
70 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
71
72 virtual bool tryToPlace(
73 ::BlockSource& region,
74 ::BlockPos const& pos,
75 ::Block const& block,
76 ::ActorBlockSyncMessage const* syncMsg
77 ) const /*override*/;
78
79 virtual void
80 destroy(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, ::Actor* entitySource) const
81 /*override*/;
82
83 virtual ::Block const* playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const
84 /*override*/;
85 // NOLINTEND
86
87public:
88 // virtual function thunks
89 // NOLINTBEGIN
90 MCFOLD ::AABB const&
91 $getVisualShapeInWorld(::Block const&, ::IConstBlockSource const&, ::BlockPos const&, ::AABB&) const;
92
93 MCFOLD ::AABB const& $getVisualShape(::Block const&, ::AABB&) const;
94
95 MCAPI ::AABB const&
96 $getOutline(::Block const&, ::IConstBlockSource const&, ::BlockPos const&, ::AABB& bufferValue) const;
97
98 MCFOLD bool $isObstructingChests(::BlockSource& region, ::BlockPos const& pos, ::Block const& thisBlock) const;
99
100 MCFOLD void $addAABBs(
101 ::Block const& block,
102 ::IConstBlockSource const& region,
103 ::BlockPos const& pos,
104 ::AABB const* intersectTestBox,
105 ::std::vector<::AABB>& inoutBoxes
106 ) const;
107
108 MCFOLD bool $addCollisionShapes(
109 ::Block const& block,
110 ::IConstBlockSource const& region,
111 ::BlockPos const& pos,
112 ::AABB const* intersectTestBox,
113 ::std::vector<::AABB>& inoutBoxes,
115 ) const;
116
117 MCFOLD ::AABB $getCollisionShape(
118 ::Block const&,
119 ::IConstBlockSource const&,
120 ::BlockPos const&,
122 ) const;
123
124 MCFOLD bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
125
126 MCFOLD bool $mayPick() const;
127
128 MCFOLD bool $mayPick(::BlockSource const& region, ::Block const& block, bool liquid) const;
129
130 MCFOLD bool $mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const;
131
132 MCFOLD bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
133
134 MCFOLD bool $tryToPlace(
135 ::BlockSource& region,
136 ::BlockPos const& pos,
137 ::Block const& block,
138 ::ActorBlockSyncMessage const* syncMsg
139 ) const;
140
141 MCFOLD void
142 $destroy(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, ::Actor* entitySource) const;
143
144 MCFOLD ::Block const* $playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const;
145
146
147 // NOLINTEND
148
149public:
150 // vftables
151 // NOLINTBEGIN
152 MCAPI static void** $vftable();
153 // NOLINTEND
154};
Definition AABB.h:18
Definition Actor.h:113
Definition AirBlock.h:22
Definition BlockPos.h:17
Definition BlockSource.h:71
Definition Block.h:41
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
Definition Player.h:129
Definition optional_ref.h:10
Definition ActorBlockSyncMessage.h:8