LeviLamina
Loading...
Searching...
No Matches
SoulSandBlock.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 BaseGameVersion;
13class Block;
14class BlockPos;
15class BlockSource;
16class Experiments;
19namespace BlockEvents { class BlockPlaceEvent; }
20namespace BlockEvents { class BlockQueuedTickEvent; }
21namespace BlockEvents { class BlockRandomTickEvent; }
22// clang-format on
23
24class SoulSandBlock : public ::BlockType {
25public:
26 // virtual functions
27 // NOLINTBEGIN
28 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
29 /*override*/;
30
31 virtual bool breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const /*override*/;
32
33 virtual ::AABB getCollisionShape(
34 ::Block const&,
36 ::BlockPos const& pos,
38 ) const /*override*/;
39
40 virtual bool getCollisionShapeForCamera(
41 ::AABB& outAABB,
42 ::Block const& block,
43 ::IConstBlockSource const& region,
44 ::BlockPos const& pos
45 ) const /*override*/;
46
47 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
48
49 virtual ~SoulSandBlock() /*override*/ = default;
50 // NOLINTEND
51
52public:
53 // member functions
54 // NOLINTBEGIN
55 MCFOLD void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
56
57 MCAPI void randomTick(::BlockEvents::BlockRandomTickEvent& eventData) const;
58
59 MCFOLD void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
60 // NOLINTEND
61
62public:
63 // static variables
64 // NOLINTBEGIN
65 MCAPI static ::AABB& BLOCK_AABB();
66
67 MCAPI static ::BaseGameVersion const& SOUL_SAND_BREAKS_FALLING_BLOCK_VERSION();
68 // NOLINTEND
69
70public:
71 // virtual function thunks
72 // NOLINTBEGIN
73 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
74
75 MCAPI bool $breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const;
76
77 MCAPI ::AABB $getCollisionShape(
78 ::Block const&,
80 ::BlockPos const& pos,
82 ) const;
83
84 MCFOLD bool $getCollisionShapeForCamera(
85 ::AABB& outAABB,
86 ::Block const& block,
87 ::IConstBlockSource const& region,
88 ::BlockPos const& pos
89 ) const;
90
91 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
92
93
94 // NOLINTEND
95
96public:
97 // vftables
98 // NOLINTBEGIN
99 MCNAPI static void** $vftable();
100 // NOLINTEND
101};
Definition AABB.h:18
Definition BaseGameVersion.h:8
Definition BlockPlaceEvent.h:16
Definition BlockQueuedTickEvent.h:16
Definition BlockRandomTickEvent.h:16
Definition BlockPos.h:19
Definition BlockSource.h:68
Definition Block.h:43
Definition Experiments.h:14
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
Definition SoulSandBlock.h:24
static MCAPI void ** $vftable()
Definition optional_ref.h:10