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#include "mc/world/level/block/BlockLegacy.h"
9
10// auto generated forward declare list
11// clang-format off
12class AABB;
13class Actor;
15class Block;
16class BlockActor;
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 getCollisionShape(
42 ::Block const&,
44 ::BlockPos const&,
46 ) const /*override*/;
47
48 // vIndex: 86
49 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
50 /*override*/;
51
52 // vIndex: 56
53 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
54 /*override*/;
55
56 // vIndex: 89
57 virtual ::ItemInstance asItemInstance(::Block const&, ::BlockActor const* blockActor) const /*override*/;
58
59 // vIndex: 137
60 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
61
62 // vIndex: 117
63 virtual int getVariant(::Block const& block) const /*override*/;
64
65 // vIndex: 130
66 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
67
68 // vIndex: 0
69 virtual ~BannerBlock() /*override*/ = default;
70 // NOLINTEND
71
72public:
73 // member functions
74 // NOLINTBEGIN
75 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
76
77 MCFOLD void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
78 // NOLINTEND
79
80public:
81 // static functions
82 // NOLINTBEGIN
83 MCAPI static ::ItemInstance itemInstanceFromBlockEntity(::gsl::not_null<::BannerBlockActor const*> banner);
84 // NOLINTEND
85
86public:
87 // static variables
88 // NOLINTBEGIN
89 MCAPI static ::AABB& EAST_AABB();
90
91 MCAPI static ::AABB& NORTH_AABB();
92
93 MCAPI static ::AABB& SOUTH_AABB();
94
95 MCAPI static ::AABB& STANDING_AABB();
96
97 MCAPI static ::AABB& WEST_AABB();
98 // NOLINTEND
99
100public:
101 // virtual function thunks
102 // NOLINTBEGIN
103 MCAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB&) const;
104
105 MCFOLD ::AABB $getCollisionShape(
106 ::Block const&,
107 ::IConstBlockSource const&,
108 ::BlockPos const&,
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:18
Definition ActorBlockBase.h:6
Definition Actor.h:103
Definition BannerBlockActor.h:21
Definition BannerBlock.h:27
Definition BlockActor.h:32
Definition BlockPlaceEvent.h:16
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:38
Definition Experiments.h:14
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition ItemInstance.h:16
Definition optional_ref.h:10