LeviLamina
Loading...
Searching...
No Matches
ChalkboardBlock.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#include "mc/world/level/block/actor/ChalkboardSize.h"
10
11// auto generated forward declare list
12// clang-format off
13class AABB;
14class Actor;
15class Block;
16class BlockActor;
17class BlockPos;
18class BlockSource;
21class ItemInstance;
22class Player;
23namespace BlockEvents { class BlockPlayerInteractEvent; }
24// clang-format on
25
26class ChalkboardBlock : public ::ActorBlock {
27public:
28 // prevent constructor by default
29 ChalkboardBlock();
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 virtual ::AABB const& getVisualShapeInWorld(
35 ::Block const& block,
36 ::IConstBlockSource const& region,
37 ::BlockPos const& pos,
38 ::AABB& bufferAABB
39 ) const /*override*/;
40
41 virtual ::AABB const& getOutline(
42 ::Block const& block,
43 ::IConstBlockSource const& region,
44 ::BlockPos const& pos,
45 ::AABB& bufferValue
46 ) const /*override*/;
47
48 virtual ::AABB getCollisionShape(
49 ::Block const&,
51 ::BlockPos const&,
53 ) const /*override*/;
54
55 virtual bool checkIsPathable(::Actor&, ::BlockPos const&, ::BlockPos const&) const /*override*/;
56
57 virtual ::ItemInstance asItemInstance(::Block const& blockActor, ::BlockActor const*) const /*override*/;
58
59 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
60 /*override*/;
61
62 virtual bool isInteractiveBlock() const /*override*/;
63
64 virtual int getVariant(::Block const& block) const /*override*/;
65
66 virtual bool getIgnoresDestroyPermissions(::Actor& entity, ::BlockPos const& pos) const /*override*/;
67 // NOLINTEND
68
69public:
70 // member functions
71 // NOLINTBEGIN
72 MCAPI ChalkboardBlock(::std::string const& nameId, int id);
73
74 MCAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
75 // NOLINTEND
76
77public:
78 // static functions
79 // NOLINTBEGIN
80 MCAPI static void _getShape(::ChalkboardSize size, bool isOnGround, int dir, ::AABB& bufferValue);
81
82#ifdef LL_PLAT_C
83 MCAPI static bool mayPlayerEdit(::Player& player, ::BlockPos const& pos);
84#endif
85 // NOLINTEND
86
87public:
88 // constructor thunks
89 // NOLINTBEGIN
90 MCAPI void* $ctor(::std::string const& nameId, int id);
91 // NOLINTEND
92
93public:
94 // virtual function thunks
95 // NOLINTBEGIN
96 MCAPI ::AABB const& $getVisualShapeInWorld(
97 ::Block const& block,
98 ::IConstBlockSource const& region,
99 ::BlockPos const& pos,
100 ::AABB& bufferAABB
101 ) const;
102
103 MCAPI ::AABB const& $getOutline(
104 ::Block const& block,
105 ::IConstBlockSource const& region,
106 ::BlockPos const& pos,
107 ::AABB& bufferValue
108 ) const;
109
110 MCFOLD ::AABB $getCollisionShape(
111 ::Block const&,
112 ::IConstBlockSource const&,
113 ::BlockPos const&,
115 ) const;
116
117 MCFOLD bool $checkIsPathable(::Actor&, ::BlockPos const&, ::BlockPos const&) const;
118
119 MCAPI ::ItemInstance $asItemInstance(::Block const& blockActor, ::BlockActor const*) const;
120
121 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
122
123 MCFOLD bool $isInteractiveBlock() const;
124
125 MCFOLD int $getVariant(::Block const& block) const;
126
127 MCAPI bool $getIgnoresDestroyPermissions(::Actor& entity, ::BlockPos const& pos) const;
128
129
130 // NOLINTEND
131
132public:
133 // vftables
134 // NOLINTBEGIN
135 MCAPI static void** $vftable();
136 // NOLINTEND
137};
Definition AABB.h:18
Definition Actor.h:123
Definition BlockActor.h:30
Definition BlockPlayerInteractEvent.h:20
Definition BlockPos.h:21
Definition BlockSource.h:72
Definition Block.h:69
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:23
Definition ItemInstance.h:15
Definition Player.h:136
Definition optional_ref.h:10