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