Skip to content
LeviMC
English
AutoLightDark
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 // virtual functions
35 // NOLINTBEGIN
36 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB&) const /*override*/;
37
38 virtual ::AABB getCollisionShape(
39 ::Block const&,
41 ::BlockPos const&,
43 ) const /*override*/;
44
45 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
46 /*override*/;
47
48 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
49 /*override*/;
50
51 virtual ::ItemInstance asItemInstance(::Block const&, ::BlockActor const* blockActor) const /*override*/;
52
53 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
54
55 virtual int getVariant(::Block const& block) const /*override*/;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCNAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
62
63 MCNAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
64 // NOLINTEND
65
66public:
67 // static functions
68 // NOLINTBEGIN
69 MCNAPI static ::ItemInstance itemInstanceFromBlockEntity(::gsl::not_null<::BannerBlockActor const*> banner);
70 // NOLINTEND
71
72public:
73 // static variables
74 // NOLINTBEGIN
75 MCNAPI static ::AABB& EAST_AABB();
76
77 MCNAPI static ::AABB& NORTH_AABB();
78
79 MCNAPI static ::AABB& SOUTH_AABB();
80
81 MCNAPI static ::AABB& STANDING_AABB();
82
83 MCNAPI static ::AABB& WEST_AABB();
84 // NOLINTEND
85
86public:
87 // virtual function thunks
88 // NOLINTBEGIN
89 MCNAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB&) const;
90
91 MCNAPI ::AABB $getCollisionShape(
92 ::Block const&,
94 ::BlockPos const&,
96 ) const;
97
98 MCNAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
99
100 MCNAPI bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
101
102 MCNAPI ::ItemInstance $asItemInstance(::Block const&, ::BlockActor const* blockActor) const;
103
104 MCNAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
105
106 MCNAPI int $getVariant(::Block const& block) const;
107
108
109 // NOLINTEND
110
111public:
112 // vftables
113 // NOLINTBEGIN
114 MCNAPI static void** $vftable();
115 // NOLINTEND
116};
Definition AABB.h:18
Definition Actor.h:116
Definition BannerBlockActor.h:21
Definition BannerBlock.h:26
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()
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:30
Definition BlockPlaceEvent.h:16
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
Definition ItemInstance.h:15
Definition optional_ref.h:10