LeviLamina
Loading...
Searching...
No Matches
LiquidBlockDynamic.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/LiquidBlock.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class BlockPos;
12class BlockSource;
13class Experiments;
14class Random;
15namespace BlockEvents { class BlockPlaceEvent; }
16// clang-format on
17
19public:
20 // virtual functions
21 // NOLINTBEGIN
22 // vIndex: 136
23 virtual void tick(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const /*override*/;
24
25 // vIndex: 149
26 virtual void entityInside(::BlockSource&, ::BlockPos const&, ::Actor& entity) const /*override*/;
27
28 // vIndex: 131
29 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
30
31 // vIndex: 0
32 virtual ~LiquidBlockDynamic() /*override*/ = default;
33 // NOLINTEND
34
35public:
36 // member functions
37 // NOLINTBEGIN
38 MCAPI int _getSlopeDistance(::BlockSource& region, ::BlockPos const& pos, int pass, int from) const;
39
40 MCAPI bool _isLiquidBlocking(
41 ::BlockSource& region,
42 ::BlockPos const& pos,
43 ::BlockPos const& flowFromPos,
44 uchar flowFromDirection
45 ) const;
46
47 MCAPI void _setStatic(::BlockSource& region, ::BlockPos const& pos, bool usingExtraData) const;
48
49 MCAPI void _spread(::BlockSource& region, ::BlockPos const& pos, int depth, bool preserveExisting) const;
50
51 MCAPI bool _tick(::BlockSource& region, ::BlockPos const& pos, ::Random& random, bool onlyDetectStatic) const;
52
53 MCAPI void _trySpreadTo(
54 ::BlockSource& region,
55 ::BlockPos const& pos,
56 int neighbor,
57 ::BlockPos const& flowFromPos,
58 uchar flowFromDirection
59 ) const;
60
61 MCAPI ::std::array<bool, 4> getSpread(::BlockSource& region, ::BlockPos const& pos) const;
62
63 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
64 // NOLINTEND
65
66public:
67 // destructor thunk
68 // NOLINTBEGIN
69
70 // NOLINTEND
71
72public:
73 // virtual function thunks
74 // NOLINTBEGIN
75 MCAPI void $tick(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const;
76
77 MCFOLD void $entityInside(::BlockSource&, ::BlockPos const&, ::Actor& entity) const;
78
79 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
80 // NOLINTEND
81
82public:
83 // vftables
84 // NOLINTBEGIN
85 MCAPI static void** $vftable();
86 // NOLINTEND
87};
Definition Actor.h:104
Definition BlockPlaceEvent.h:15
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Experiments.h:14
Definition LiquidBlockDynamic.h:18
Definition LiquidBlock.h:27
Definition Random.h:16