LeviLamina
Loading...
Searching...
No Matches
ScaffoldingBlock.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/ShapeType.h"
8#include "mc/world/level/block/FallingBlock.h"
9
10// auto generated forward declare list
11// clang-format off
12class AABB;
13class Actor;
14class BaseGameVersion;
15class Block;
16class BlockPos;
17class BlockSource;
18class Experiments;
20class HitResult;
22class Vec3;
24namespace BlockEvents { class BlockPlaceEvent; }
25namespace BlockEvents { class BlockQueuedTickEvent; }
26namespace mce { class Color; }
27// clang-format on
28
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 // vIndex: 5
34 virtual ::AABB getCollisionShape(
35 ::Block const& block,
37 ::BlockPos const& pos,
39 ) const /*override*/;
40
41 // vIndex: 4
42 virtual ::HitResult
43 clip(::Block const&, ::BlockSource const& region, ::BlockPos const& pos, ::Vec3 const& A, ::Vec3 const& B, ::ShapeType, ::optional_ref<::GetCollisionShapeInterface const>)
44 const /*override*/;
45
46 // vIndex: 87
47 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
48 /*override*/;
49
50 // vIndex: 107
51 virtual bool canSlide(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
52
53 // vIndex: 31
54 virtual bool isLavaBlocking() const /*override*/;
55
56 // vIndex: 84
57 virtual bool breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const /*override*/;
58
59 // vIndex: 92
60 virtual ::Block const&
61 getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue) const
62 /*override*/;
63
64 // vIndex: 79
65 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
66
67 // vIndex: 57
68 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
69 /*override*/;
70
71 // vIndex: 150
72 virtual ::mce::Color getDustColor(::Block const&) const /*override*/;
73
74 // vIndex: 151
75 virtual ::std::string getDustParticleName(::Block const&) const /*override*/;
76
77 // vIndex: 123
78 virtual void animateTickBedrockLegacy(::BlockAnimateTickData const& tickData) const /*override*/;
79
80 // vIndex: 131
81 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
82
83 // vIndex: 0
84 virtual ~ScaffoldingBlock() /*override*/ = default;
85 // NOLINTEND
86
87public:
88 // member functions
89 // NOLINTBEGIN
90 MCAPI bool _updateBlockStability(::BlockSource& region, ::BlockPos const& pos) const;
91
92 MCAPI int calculateStability(::BlockSource const& region, ::BlockPos const& pos) const;
93
94 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
95
96 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
97 // NOLINTEND
98
99public:
100 // static variables
101 // NOLINTBEGIN
102 MCAPI static int const& MAX_STABILITY();
103 // NOLINTEND
104
105public:
106 // destructor thunk
107 // NOLINTBEGIN
108
109 // NOLINTEND
110
111public:
112 // virtual function thunks
113 // NOLINTBEGIN
114 MCAPI ::AABB $getCollisionShape(
115 ::Block const& block,
116 ::IConstBlockSource const&,
117 ::BlockPos const& pos,
119 ) const;
120
121 MCAPI ::HitResult
122 $clip(::Block const&, ::BlockSource const& region, ::BlockPos const& pos, ::Vec3 const& A, ::Vec3 const& B, ::ShapeType, ::optional_ref<::GetCollisionShapeInterface const>)
123 const;
124
125 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
126
127 MCAPI bool $canSlide(::BlockSource& region, ::BlockPos const& pos) const;
128
129 MCFOLD bool $isLavaBlocking() const;
130
131 MCFOLD bool $breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const;
132
133 MCAPI ::Block const&
134 $getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue)
135 const;
136
137 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
138
139 MCAPI bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
140
141 MCAPI ::mce::Color $getDustColor(::Block const&) const;
142
143 MCAPI ::std::string $getDustParticleName(::Block const&) const;
144
145 MCAPI void $animateTickBedrockLegacy(::BlockAnimateTickData const& tickData) const;
146
147 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
148 // NOLINTEND
149
150public:
151 // vftables
152 // NOLINTBEGIN
153 MCAPI static void** $vftable();
154 // NOLINTEND
155};
Definition AABB.h:16
Definition Actor.h:104
Definition BaseGameVersion.h:13
Definition BlockPlaceEvent.h:15
Definition BlockQueuedTickEvent.h:15
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition Experiments.h:14
Definition FallingBlock.h:20
Definition GetCollisionShapeInterface.h:13
Definition HitResult.h:19
Definition IConstBlockSource.h:24
Definition ScaffoldingBlock.h:29
Definition Vec3.h:10
Definition optional_ref.h:10
Definition BlockAnimateTickData.h:5