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/BlockLegacy.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;
19class Experiments;
22class ItemInstance;
23namespace BlockEvents { class BlockPlayerInteractEvent; }
24// clang-format on
25
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 // vIndex: 10
31 virtual ::AABB const& getVisualShapeInWorld(
32 ::Block const& block,
33 ::IConstBlockSource const& region,
34 ::BlockPos const& pos,
35 ::AABB& bufferAABB
36 ) const /*override*/;
37
38 // vIndex: 9
39 virtual ::AABB const& getOutline(
40 ::Block const& block,
41 ::IConstBlockSource const& region,
42 ::BlockPos const& pos,
43 ::AABB& bufferValue
44 ) const /*override*/;
45
46 // vIndex: 5
47 virtual ::AABB getCollisionShape(
48 ::Block const&,
50 ::BlockPos const&,
52 ) const /*override*/;
53
54 // vIndex: 56
55 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
56 /*override*/;
57
58 // vIndex: 89
59 virtual ::ItemInstance asItemInstance(::Block const&, ::BlockActor const* blockActor) const /*override*/;
60
61 // vIndex: 86
62 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
63 /*override*/;
64
65 // vIndex: 135
66 virtual bool isInteractiveBlock() const /*override*/;
67
68 // vIndex: 117
69 virtual int getVariant(::Block const& block) const /*override*/;
70
71 // vIndex: 85
72 virtual bool getIgnoresDestroyPermissions(::Actor& entity, ::BlockPos const& pos) const /*override*/;
73
74 // vIndex: 130
75 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
76
77 // vIndex: 0
78 virtual ~ChalkboardBlock() /*override*/ = default;
79 // NOLINTEND
80
81public:
82 // member functions
83 // NOLINTBEGIN
84 MCAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
85 // NOLINTEND
86
87public:
88 // static functions
89 // NOLINTBEGIN
90 MCAPI static void _getShape(::ChalkboardSize size, bool isOnGround, int dir, ::AABB& bufferValue);
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& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
118
119 MCAPI ::ItemInstance $asItemInstance(::Block const&, ::BlockActor const* blockActor) 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 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
130 // NOLINTEND
131
132public:
133 // vftables
134 // NOLINTBEGIN
135 MCAPI static void** $vftable();
136 // NOLINTEND
137};
Definition AABB.h:18
Definition ActorBlockBase.h:6
Definition Actor.h:103
Definition BlockActor.h:32
Definition BlockPlayerInteractEvent.h:18
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:38
Definition ChalkboardBlock.h:26
Definition Experiments.h:14
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition ItemInstance.h:16
Definition optional_ref.h:10