Skip to content
LeviMC
English
AutoLightDark
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 MCNAPI ::AABB const&
92
93 MCNAPI ::AABB const& $getVisualShape(::Block const&, ::AABB&) const;
94
95 MCNAPI ::AABB const&
96 $getOutline(::Block const&, ::IConstBlockSource const&, ::BlockPos const&, ::AABB& bufferValue) const;
97
98 MCNAPI bool $isObstructingChests(::BlockSource& region, ::BlockPos const& pos, ::Block const& thisBlock) const;
99
100 MCNAPI 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
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 MCNAPI ::AABB $getCollisionShape(
118 ::Block const&,
119 ::IConstBlockSource const&,
120 ::BlockPos const&,
122 ) const;
123
124 MCNAPI bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
125
126 MCNAPI bool $mayPick() const;
127
128 MCNAPI bool $mayPick(::BlockSource const& region, ::Block const& block, bool liquid) const;
129
130 MCNAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const;
131
132 MCNAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
133
134 MCNAPI bool $tryToPlace(
135 ::BlockSource& region,
136 ::BlockPos const& pos,
137 ::Block const& block,
138 ::ActorBlockSyncMessage const* syncMsg
139 ) const;
140
141 MCNAPI void
142 $destroy(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, ::Actor* entitySource) const;
143
144 MCNAPI ::Block const* $playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const;
145
146
147 // NOLINTEND
148
149public:
150 // vftables
151 // NOLINTBEGIN
152 MCNAPI static void** $vftable();
153 // NOLINTEND
154};
Definition AABB.h:18
Definition Actor.h:116
Definition AirBlock.h:22
MCAPI void $destroy(::BlockSource &region, ::BlockPos const &pos, ::Block const &block, ::Actor *entitySource) const
MCAPI bool $checkIsPathable(::Actor &entity, ::BlockPos const &lastPathPos, ::BlockPos const &pathPos) const
MCAPI bool $isObstructingChests(::BlockSource &region, ::BlockPos const &pos, ::Block const &thisBlock) const
MCAPI::AABB const & $getVisualShape(::Block const &, ::AABB &) const
MCAPI bool $mayPick() const
MCAPI::AABB $getCollisionShape(::Block const &, ::IConstBlockSource const &, ::BlockPos const &, ::optional_ref<::GetCollisionShapeInterface const >) const
MCAPI bool $mayPick(::BlockSource const &region, ::Block const &block, bool liquid) const
MCAPI bool $addCollisionShapes(::Block const &block, ::IConstBlockSource const &region, ::BlockPos const &pos, ::AABB const *intersectTestBox, ::std::vector<::AABB > &inoutBoxes, ::optional_ref<::GetCollisionShapeInterface const > entity) const
MCAPI bool $mayPlace(::BlockSource &region, ::BlockPos const &pos, uchar face) const
MCAPI::AABB const & $getOutline(::Block const &, ::IConstBlockSource const &, ::BlockPos const &, ::AABB &bufferValue) const
MCAPI bool $tryToPlace(::BlockSource &region, ::BlockPos const &pos, ::Block const &block, ::ActorBlockSyncMessage const *syncMsg) const
MCAPI::Block const * $playerWillDestroy(::Player &player, ::BlockPos const &pos, ::Block const &block) const
MCAPI::AABB const & $getVisualShapeInWorld(::Block const &, ::IConstBlockSource const &, ::BlockPos const &, ::AABB &) const
MCAPI bool $mayPlace(::BlockSource &region, ::BlockPos const &pos) const
static MCAPI void ** $vftable()
MCAPI void $addAABBs(::Block const &block, ::IConstBlockSource const &region, ::BlockPos const &pos, ::AABB const *intersectTestBox, ::std::vector<::AABB > &inoutBoxes) const
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
Definition Player.h:131
Definition optional_ref.h:10
Definition ActorBlockSyncMessage.h:8