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;
18namespace BlockEvents { class BlockRandomTickEvent; }
19// clang-format on
20
21class MudBlock : public ::BlockType {
22public:
23 // virtual functions
24 // NOLINTBEGIN
25 virtual bool breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const /*override*/;
26
27 virtual bool canBeOriginalSurface(bool) const /*override*/;
28
29 virtual void onRemove(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
30
31 virtual ::AABB getCollisionShape(
32 ::Block const&,
34 ::BlockPos const& pos,
36 ) const /*override*/;
37
38 virtual bool getCollisionShapeForCamera(
39 ::AABB& outAABB,
40 ::Block const& block,
41 ::IConstBlockSource const& region,
42 ::BlockPos const& pos
43 ) const /*override*/;
44 // NOLINTEND
45
46public:
47 // member functions
48 // NOLINTBEGIN
49 MCAPI void randomTick(::BlockEvents::BlockRandomTickEvent& eventData) const;
50 // NOLINTEND
51
52public:
53 // static variables
54 // NOLINTBEGIN
55 MCAPI static ::AABB& BLOCK_AABB();
56 // NOLINTEND
57
58public:
59 // virtual function thunks
60 // NOLINTBEGIN
61 MCFOLD bool $breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const;
62
63 MCFOLD bool $canBeOriginalSurface(bool) const;
64
65 MCFOLD void $onRemove(::BlockSource& region, ::BlockPos const& pos) const;
66
67 MCAPI ::AABB $getCollisionShape(
68 ::Block const&,
70 ::BlockPos const& pos,
72 ) const;
73
74 MCFOLD bool $getCollisionShapeForCamera(
75 ::AABB& outAABB,
76 ::Block const& block,
77 ::IConstBlockSource const& region,
78 ::BlockPos const& pos
79 ) const;
80
81
82 // NOLINTEND
83
84public:
85 // vftables
86 // NOLINTBEGIN
87 MCAPI static void** $vftable();
88 // NOLINTEND
89};
Definition AABB.h:18
Definition BaseGameVersion.h:8
Definition BlockRandomTickEvent.h:16
Definition BlockPos.h:17
Definition BlockSource.h:71
Definition Block.h:42
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
Definition MudBlock.h:21
Definition optional_ref.h:10