LeviLamina
Loading...
Searching...
No Matches
BasePressurePlateBlock.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/Direction.h"
8#include "mc/world/level/block/BlockLegacy.h"
9
10// auto generated forward declare list
11// clang-format off
12class AABB;
13class Actor;
14class Block;
15class BlockPos;
16class BlockSource;
17class Experiments;
20namespace BlockEvents { class BlockPlaceEvent; }
21namespace BlockEvents { class BlockQueuedTickEvent; }
22// clang-format on
23
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<8, 32, ::std::string> texture;
29 // NOLINTEND
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 // vIndex: 11
35 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB& bufferAABB) const /*override*/;
36
37 // vIndex: 5
38 virtual ::AABB getCollisionShape(
39 ::Block const&,
41 ::BlockPos const&,
43 ) const /*override*/;
44
45 // vIndex: 147
46 virtual int getTickDelay() const;
47
48 // vIndex: 56
49 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
50 /*override*/;
51
52 // vIndex: 78
53 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
54
55 // vIndex: 93
56 virtual bool isAttachedTo(::BlockSource& region, ::BlockPos const& pos, ::BlockPos& outAttachedTo) const
57 /*override*/;
58
59 // vIndex: 43
60 virtual bool isSignalSource() const /*override*/;
61
62 // vIndex: 95
63 virtual bool shouldTriggerEntityInside(::BlockSource& region, ::BlockPos const& pos, ::Actor& entity) const
64 /*override*/;
65
66 // vIndex: 146
67 virtual void entityInside(::BlockSource& region, ::BlockPos const& pos, ::Actor& entity) const /*override*/;
68
69 // vIndex: 66
70 virtual void setupRedstoneComponent(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
71
72 // vIndex: 86
73 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
74 /*override*/;
75
76 // vIndex: 53
77 virtual bool
78 shouldConnectToRedstone(::BlockSource& region, ::BlockPos const& pos, ::Direction::Type direction) const
79 /*override*/;
80
81 // vIndex: 117
82 virtual int getVariant(::Block const& block) const /*override*/;
83
84 // vIndex: 118
85 virtual bool canSpawnOn(::Actor*) const /*override*/;
86
87 // vIndex: 148
88 virtual int getSignalStrength(::BlockSource&, ::BlockPos const&) const = 0;
89
90 // vIndex: 138
91 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
92
93 // vIndex: 149
94 virtual int getSignalForData(int) const = 0;
95
96 // vIndex: 150
97 virtual int getRedstoneSignal(int) const = 0;
98
99 // vIndex: 151
100 virtual ::AABB const getSensitiveAABB(::BlockPos const& pos) const;
101
102 // vIndex: 130
103 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
104
105 // vIndex: 0
106 virtual ~BasePressurePlateBlock() /*override*/ = default;
107 // NOLINTEND
108
109public:
110 // member functions
111 // NOLINTBEGIN
112 MCAPI void checkPressed(
113 ::BlockSource& region,
114 ::BlockPos const& pos,
115 ::Actor* sourceEntity,
116 int oldSignal,
117 int newSignal
118 ) const;
119
120 MCFOLD void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
121
122 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
123 // NOLINTEND
124
125public:
126 // virtual function thunks
127 // NOLINTBEGIN
128 MCAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB& bufferAABB) const;
129
130 MCFOLD ::AABB $getCollisionShape(
131 ::Block const&,
132 ::IConstBlockSource const&,
133 ::BlockPos const&,
135 ) const;
136
137 MCFOLD int $getTickDelay() const;
138
139 MCFOLD bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
140
141 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
142
143 MCAPI bool $isAttachedTo(::BlockSource& region, ::BlockPos const& pos, ::BlockPos& outAttachedTo) const;
144
145 MCFOLD bool $isSignalSource() const;
146
147 MCAPI bool $shouldTriggerEntityInside(::BlockSource& region, ::BlockPos const& pos, ::Actor& entity) const;
148
149 MCAPI void $entityInside(::BlockSource& region, ::BlockPos const& pos, ::Actor& entity) const;
150
151 MCAPI void $setupRedstoneComponent(::BlockSource& region, ::BlockPos const& pos) const;
152
153 MCFOLD void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
154
155 MCFOLD bool
156 $shouldConnectToRedstone(::BlockSource& region, ::BlockPos const& pos, ::Direction::Type direction) const;
157
158 MCFOLD int $getVariant(::Block const& block) const;
159
160 MCFOLD bool $canSpawnOn(::Actor*) const;
161
162 MCFOLD bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
163
164 MCAPI ::AABB const $getSensitiveAABB(::BlockPos const& pos) const;
165
166 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
167 // NOLINTEND
168};
Definition AABB.h:18
Definition Actor.h:103
Definition BasePressurePlateBlock.h:24
Definition BlockPlaceEvent.h:16
Definition BlockQueuedTickEvent.h:16
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:38
Definition Experiments.h:14
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition optional_ref.h:10