LeviLamina
Loading...
Searching...
No Matches
MudBlock.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 BlockRandomTickEvent; }
20// clang-format on
21
22class MudBlock : public ::BlockType {
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 virtual bool breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const /*override*/;
27
28 virtual bool canBeOriginalSurface(bool) const /*override*/;
29
30 virtual void onRemove(::BlockSource& region, ::BlockPos const& pos) 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
46 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
47
48 virtual ~MudBlock() /*override*/ = default;
49 // NOLINTEND
50
51public:
52 // member functions
53 // NOLINTBEGIN
54 MCAPI void randomTick(::BlockEvents::BlockRandomTickEvent& eventData) const;
55 // NOLINTEND
56
57public:
58 // static variables
59 // NOLINTBEGIN
60 MCAPI static ::AABB& BLOCK_AABB();
61 // NOLINTEND
62
63public:
64 // virtual function thunks
65 // NOLINTBEGIN
66 MCFOLD bool $breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const;
67
68 MCFOLD bool $canBeOriginalSurface(bool) const;
69
70 MCFOLD void $onRemove(::BlockSource& region, ::BlockPos const& pos) const;
71
72 MCAPI ::AABB $getCollisionShape(
73 ::Block const&,
75 ::BlockPos const& pos,
77 ) const;
78
79 MCFOLD bool $getCollisionShapeForCamera(
80 ::AABB& outAABB,
81 ::Block const& block,
82 ::IConstBlockSource const& region,
83 ::BlockPos const& pos
84 ) const;
85
86 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
87
88
89 // NOLINTEND
90
91public:
92 // vftables
93 // NOLINTBEGIN
94 MCNAPI static void** $vftable();
95 // NOLINTEND
96};
Definition AABB.h:18
Definition BaseGameVersion.h:8
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 MudBlock.h:22
static MCAPI void ** $vftable()
Definition optional_ref.h:10