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