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