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;
20class Experiments;
23class ItemInstance;
24namespace BlockEvents { class BlockPlayerInteractEvent; }
25// clang-format on
26
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 // vIndex: 10
32 virtual ::AABB const& getVisualShapeInWorld(
33 ::Block const& block,
34 ::IConstBlockSource const& region,
35 ::BlockPos const& pos,
36 ::AABB& bufferAABB
37 ) const /*override*/;
38
39 // vIndex: 9
40 virtual ::AABB const& getOutline(
41 ::Block const& block,
42 ::IConstBlockSource const& region,
43 ::BlockPos const& pos,
44 ::AABB& bufferValue
45 ) const /*override*/;
46
47 // vIndex: 5
48 virtual ::AABB getCollisionShape(
49 ::Block const&,
51 ::BlockPos const&,
53 ) const /*override*/;
54
55 // vIndex: 57
56 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
57 /*override*/;
58
59 // vIndex: 90
60 virtual ::ItemInstance asItemInstance(::Block const&, ::BlockActor const* blockActor) const /*override*/;
61
62 // vIndex: 87
63 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
64 /*override*/;
65
66 // vIndex: 136
67 virtual bool isInteractiveBlock() const /*override*/;
68
69 // vIndex: 118
70 virtual int getVariant(::Block const& block) const /*override*/;
71
72 // vIndex: 86
73 virtual bool getIgnoresDestroyPermissions(::Actor& entity, ::BlockPos const& pos) const /*override*/;
74
75 // vIndex: 131
76 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
77
78 // vIndex: 0
79 virtual ~ChalkboardBlock() /*override*/ = default;
80 // NOLINTEND
81
82public:
83 // member functions
84 // NOLINTBEGIN
85 MCAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
86 // NOLINTEND
87
88public:
89 // static functions
90 // NOLINTBEGIN
91 MCAPI static ::ChalkboardBlockActor* _getBaseChalkboard(::BlockSource& region, ::BlockPos const& pos);
92
93 MCAPI static void _getShape(::ChalkboardSize size, bool isOnGround, int dir, ::AABB& bufferValue);
94 // NOLINTEND
95
96public:
97 // virtual function thunks
98 // NOLINTBEGIN
99 MCAPI ::AABB const& $getVisualShapeInWorld(
100 ::Block const& block,
101 ::IConstBlockSource const& region,
102 ::BlockPos const& pos,
103 ::AABB& bufferAABB
104 ) const;
105
106 MCAPI ::AABB const& $getOutline(
107 ::Block const& block,
108 ::IConstBlockSource const& region,
109 ::BlockPos const& pos,
110 ::AABB& bufferValue
111 ) const;
112
113 MCFOLD ::AABB $getCollisionShape(
114 ::Block const&,
115 ::IConstBlockSource const&,
116 ::BlockPos const&,
118 ) const;
119
120 MCFOLD bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
121
122 MCAPI ::ItemInstance $asItemInstance(::Block const&, ::BlockActor const* blockActor) const;
123
124 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
125
126 MCFOLD bool $isInteractiveBlock() const;
127
128 MCFOLD int $getVariant(::Block const& block) const;
129
130 MCAPI bool $getIgnoresDestroyPermissions(::Actor& entity, ::BlockPos const& pos) const;
131
132 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
133 // NOLINTEND
134
135public:
136 // vftables
137 // NOLINTBEGIN
138 MCAPI static void** $vftable();
139 // NOLINTEND
140};
Definition AABB.h:18
Definition ActorBlockBase.h:6
Definition Actor.h:102
Definition BlockActor.h:32
Definition BlockPlayerInteractEvent.h:17
Definition BlockPos.h:17
Definition BlockSource.h:66
Definition Block.h:37
Definition ChalkboardBlockActor.h:24
Definition ChalkboardBlock.h:27
Definition Experiments.h:14
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition ItemInstance.h:15
Definition optional_ref.h:10