LeviLamina
Loading...
Searching...
No Matches
BubbleColumnBlock.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/BlockType.h"
8
9// auto generated forward declare list
10// clang-format off
11class AABB;
12class Actor;
13class Block;
14class BlockPos;
15class BlockSource;
17class HashedString;
19class Random;
21namespace BlockEvents { class BlockPlaceEvent; }
22namespace BlockEvents { class BlockQueuedTickEvent; }
24// clang-format on
25
26class BubbleColumnBlock : public ::BlockType {
27public:
28 // member variables
29 // NOLINTBEGIN
30 ::ll::TypedStorage<1, 1, bool> mFancyBubbles;
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
35 BubbleColumnBlock();
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 virtual void animateTickBedrockLegacy(::BlockAnimateTickData const& tickData) const /*override*/;
41
42 virtual bool isPreservingMediumWhenPlaced(::BlockType const* medium) const /*override*/;
43
44 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
45 /*override*/;
46
47 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
48
49 virtual bool checkIsPathable(::Actor&, ::BlockPos const&, ::BlockPos const&) const /*override*/;
50
51 virtual bool mayPick(::BlockSource const& liquid, ::Block const&, bool) const /*override*/;
52
53 virtual void addAABBs(
54 ::Block const& block,
55 ::IConstBlockSource const& region,
56 ::BlockPos const& pos,
57 ::AABB const* intersectTestBox,
58 ::std::vector<::AABB>& inoutBoxes
59 ) const /*override*/;
60
61 virtual bool addCollisionShapes(
62 ::Block const& block,
63 ::IConstBlockSource const& region,
64 ::BlockPos const& pos,
65 ::AABB const* intersectTestBox,
66 ::std::vector<::AABB>& inoutBoxes,
68 ) const /*override*/;
69
70 virtual ::AABB getCollisionShape(
71 ::Block const&,
73 ::BlockPos const&,
75 ) const /*override*/;
76
77 virtual bool shouldTickOnSetBlock() const /*override*/;
78
79 virtual ::std::optional<::HashedString> getRequiredMedium() const /*override*/;
80
81 virtual void onGraphicsModeChanged(::BlockGraphicsModeChangeContext const& context) /*override*/;
82 // NOLINTEND
83
84public:
85 // member functions
86 // NOLINTBEGIN
87 MCAPI BubbleColumnBlock(::std::string const& nameId, int id);
88
89 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
90
91 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
92 // NOLINTEND
93
94public:
95 // static functions
96 // NOLINTBEGIN
97 MCAPI static void _createParticles(::BlockSource& region, ::BlockPos const& pos, ::Random& random, bool down);
98
99 MCAPI static bool _getFlowDownward(::Block const& block);
100
101 MCAPI static bool _isValidBubbleColumnLocation(::BlockSource& region, ::BlockPos const& pos);
102
103 MCAPI static bool addBubbleColumnSegment(::BlockSource& region, ::BlockPos const& pos);
104
105 MCAPI static bool shouldDragDown(::Block const& block);
106
107 MCAPI static void spawnBubbles(::BlockSource& region, ::BlockPos const& pos);
108 // NOLINTEND
109
110public:
111 // constructor thunks
112 // NOLINTBEGIN
113 MCAPI void* $ctor(::std::string const& nameId, int id);
114 // NOLINTEND
115
116public:
117 // virtual function thunks
118 // NOLINTBEGIN
119 MCAPI void $animateTickBedrockLegacy(::BlockAnimateTickData const& tickData) const;
120
121 MCAPI bool $isPreservingMediumWhenPlaced(::BlockType const* medium) const;
122
123 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
124
125 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
126
127 MCFOLD bool $checkIsPathable(::Actor&, ::BlockPos const&, ::BlockPos const&) const;
128
129 MCFOLD bool $mayPick(::BlockSource const& liquid, ::Block const&, bool) const;
130
131 MCFOLD void $addAABBs(
132 ::Block const& block,
133 ::IConstBlockSource const& region,
134 ::BlockPos const& pos,
135 ::AABB const* intersectTestBox,
136 ::std::vector<::AABB>& inoutBoxes
137 ) const;
138
139 MCFOLD bool $addCollisionShapes(
140 ::Block const& block,
141 ::IConstBlockSource const& region,
142 ::BlockPos const& pos,
143 ::AABB const* intersectTestBox,
144 ::std::vector<::AABB>& inoutBoxes,
146 ) const;
147
148 MCFOLD ::AABB $getCollisionShape(
149 ::Block const&,
150 ::IConstBlockSource const&,
151 ::BlockPos const&,
153 ) const;
154
155 MCFOLD bool $shouldTickOnSetBlock() const;
156
157 MCAPI ::std::optional<::HashedString> $getRequiredMedium() const;
158
159 MCAPI void $onGraphicsModeChanged(::BlockGraphicsModeChangeContext const& context);
160
161
162 // NOLINTEND
163
164public:
165 // vftables
166 // NOLINTBEGIN
167 MCAPI static void** $vftable();
168 // NOLINTEND
169};
Definition AABB.h:18
Definition Actor.h:125
Definition BlockPlaceEvent.h:18
Definition BlockQueuedTickEvent.h:18
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition GetCollisionShapeInterface.h:13
Definition HashedString.h:5
Definition IConstBlockSource.h:24
Definition Random.h:10
Definition optional_ref.h:10
Definition BlockAnimateTickData.h:14
Definition BlockGraphicsModeChangeContext.h:5
Definition context.h:5