LeviLamina
Loading...
Searching...
No Matches
BannerBlock.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/ActorBlockBase.h"
8
9// auto generated forward declare list
10// clang-format off
11class AABB;
12class Actor;
14class Block;
15class BlockActor;
16class BlockLegacy;
17class BlockPos;
18class BlockSource;
19class Experiments;
22class ItemInstance;
23namespace BlockEvents { class BlockPlaceEvent; }
24namespace BlockEvents { class BlockQueuedTickEvent; }
25// clang-format on
26
27class BannerBlock : public ::ActorBlock {
28public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<1, 1, bool> mOnGround;
32 // NOLINTEND
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 // vIndex: 11
38 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB&) const /*override*/;
39
40 // vIndex: 5
41 virtual ::AABB
43 const /*override*/;
44
45 // vIndex: 87
46 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
47 /*override*/;
48
49 // vIndex: 57
50 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
51 /*override*/;
52
53 // vIndex: 90
54 virtual ::ItemInstance asItemInstance(::Block const&, ::BlockActor const* blockActor) const /*override*/;
55
56 // vIndex: 142
57 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
58
59 // vIndex: 118
60 virtual int getVariant(::Block const& block) const /*override*/;
61
62 // vIndex: 131
63 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
64
65 // vIndex: 0
66 virtual ~BannerBlock() /*override*/ = default;
67 // NOLINTEND
68
69public:
70 // member functions
71 // NOLINTBEGIN
72 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
73
74 MCFOLD void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
75 // NOLINTEND
76
77public:
78 // static functions
79 // NOLINTBEGIN
80 MCAPI static ::ItemInstance itemInstanceFromBlockEntity(::gsl::not_null<::BannerBlockActor const*> banner);
81 // NOLINTEND
82
83public:
84 // static variables
85 // NOLINTBEGIN
86 MCAPI static ::AABB& EAST_AABB();
87
88 MCAPI static ::AABB& NORTH_AABB();
89
90 MCAPI static ::AABB& SOUTH_AABB();
91
92 MCAPI static ::AABB& STANDING_AABB();
93
94 MCAPI static ::AABB& WEST_AABB();
95 // NOLINTEND
96
97public:
98 // destructor thunk
99 // NOLINTBEGIN
100
101 // NOLINTEND
102
103public:
104 // virtual function thunks
105 // NOLINTBEGIN
106 MCAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB&) const;
107
108 MCFOLD ::AABB
110 const;
111
112 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
113
114 MCFOLD bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
115
116 MCAPI ::ItemInstance $asItemInstance(::Block const&, ::BlockActor const* blockActor) const;
117
118 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
119
120 MCFOLD int $getVariant(::Block const& block) const;
121
122 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
123 // NOLINTEND
124
125public:
126 // vftables
127 // NOLINTBEGIN
128 MCAPI static void** $vftable();
129 // NOLINTEND
130};
Definition AABB.h:16
Definition ActorBlockBase.h:6
Definition Actor.h:104
Definition BannerBlockActor.h:21
Definition BannerBlock.h:27
Definition BlockActor.h:32
Definition BlockPlaceEvent.h:15
Definition BlockQueuedTickEvent.h:15
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition Experiments.h:14
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition ItemInstance.h:16
Definition optional_ref.h:10