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: 138
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 MCNAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
76
77 MCNAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
78 // NOLINTEND
79
80public:
81 // static functions
82 // NOLINTBEGIN
83 MCNAPI static ::ItemInstance itemInstanceFromBlockEntity(::gsl::not_null<::BannerBlockActor const*> banner);
84 // NOLINTEND
85
86public:
87 // static variables
88 // NOLINTBEGIN
89 MCNAPI static ::AABB& EAST_AABB();
90
91 MCNAPI static ::AABB& NORTH_AABB();
92
93 MCNAPI static ::AABB& SOUTH_AABB();
94
95 MCNAPI static ::AABB& STANDING_AABB();
96
97 MCNAPI static ::AABB& WEST_AABB();
98 // NOLINTEND
99
100public:
101 // virtual function thunks
102 // NOLINTBEGIN
103 MCNAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB&) const;
104
105 MCNAPI ::AABB $getCollisionShape(
106 ::Block const&,
107 ::IConstBlockSource const&,
108 ::BlockPos const&,
110 ) const;
111
112 MCNAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
113
114 MCNAPI bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
115
116 MCNAPI ::ItemInstance $asItemInstance(::Block const&, ::BlockActor const* blockActor) const;
117
118 MCNAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
119
120 MCNAPI int $getVariant(::Block const& block) const;
121
123 // NOLINTEND
124
125public:
126 // vftables
127 // NOLINTBEGIN
128 MCNAPI 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
static MCAPI ::AABB & STANDING_AABB()
static MCAPI ::AABB & EAST_AABB()
MCAPI::AABB $getCollisionShape(::Block const &, ::IConstBlockSource const &, ::BlockPos const &, ::optional_ref<::GetCollisionShapeInterface const >) const
MCAPI::AABB const & $getVisualShape(::Block const &block, ::AABB &) const
MCAPI::ItemInstance $asItemInstance(::Block const &, ::BlockActor const *blockActor) const
MCAPI bool $checkIsPathable(::Actor &entity, ::BlockPos const &lastPathPos, ::BlockPos const &pathPos) const
static MCAPI ::AABB & WEST_AABB()
MCAPI void $_addHardCodedBlockComponents(::Experiments const &)
static MCAPI ::ItemInstance itemInstanceFromBlockEntity(::gsl::not_null<::BannerBlockActor const * > banner)
MCAPI void $neighborChanged(::BlockSource &region, ::BlockPos const &pos, ::BlockPos const &neighborPos) const
MCAPI void onPlace(::BlockEvents::BlockPlaceEvent &eventData) const
MCAPI bool $canSurvive(::BlockSource &region, ::BlockPos const &pos) const
static MCAPI ::AABB & SOUTH_AABB()
static MCAPI void ** $vftable()
static MCAPI ::AABB & NORTH_AABB()
MCAPI int $getVariant(::Block const &block) const
MCAPI void tick(::BlockEvents::BlockQueuedTickEvent &eventData) const
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