LeviLamina
Loading...
Searching...
No Matches
AnvilBlock.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/BlockSupportType.h"
8#include "mc/world/level/block/FallingBlock.h"
9
10// auto generated forward declare list
11// clang-format off
12class AABB;
13class BaseGameVersion;
14class Block;
15class BlockPos;
16class BlockSource;
18class HashedString;
20class Player;
22namespace mce { class Color; }
23// clang-format on
24
25class AnvilBlock : public ::FallingBlock {
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 // vIndex: 5
30 virtual ::AABB
31 getCollisionShape(::Block const& block, ::IConstBlockSource const&, ::BlockPos const& pos, ::optional_ref<::GetCollisionShapeInterface const>)
32 const /*override*/;
33
34 // vIndex: 9
35 virtual ::AABB const&
36 getOutline(::Block const& block, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const
37 /*override*/;
38
39 // vIndex: 139
40 virtual bool use(::Player&, ::BlockPos const&, uchar) const /*override*/;
41
42 // vIndex: 150
43 virtual ::mce::Color getDustColor(::Block const&) const /*override*/;
44
45 // vIndex: 151
46 virtual ::std::string getDustParticleName(::Block const&) const /*override*/;
47
48 // vIndex: 124
49 virtual void animateTick(::BlockAnimateTickData const&) const /*override*/;
50
51 // vIndex: 152
52 virtual bool falling() const /*override*/;
53
54 // vIndex: 153
55 virtual void onLand(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
56
57 // vIndex: 30
58 virtual bool isCraftingBlock() const /*override*/;
59
60 // vIndex: 84
61 virtual bool breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const /*override*/;
62
63 // vIndex: 13
64 virtual bool
65 getLiquidClipVolume(::Block const& block, ::BlockSource& region, ::BlockPos const& pos, ::AABB& includeBox) const
66 /*override*/;
67
68 // vIndex: 138
69 virtual bool isInteractiveBlock() const /*override*/;
70
71 // vIndex: 23
72 virtual bool canProvideSupport(::Block const&, uchar, ::BlockSupportType) const /*override*/;
73
74 // vIndex: 0
75 virtual ~AnvilBlock() /*override*/ = default;
76 // NOLINTEND
77
78public:
79 // static functions
80 // NOLINTBEGIN
81 MCAPI static ::AABB const& _getShape(::BlockPos const& pos, ::Block const& block, ::AABB& bufferValue);
82
83 MCAPI static int getDamageForName(::HashedString const& name);
84 // NOLINTEND
85
86public:
87 // destructor thunk
88 // NOLINTBEGIN
89
90 // NOLINTEND
91
92public:
93 // virtual function thunks
94 // NOLINTBEGIN
95 MCAPI ::AABB
96 $getCollisionShape(::Block const& block, ::IConstBlockSource const&, ::BlockPos const& pos, ::optional_ref<::GetCollisionShapeInterface const>)
97 const;
98
99 MCAPI ::AABB const&
100 $getOutline(::Block const& block, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const;
101
102 MCFOLD bool $use(::Player&, ::BlockPos const&, uchar) const;
103
104 MCFOLD ::mce::Color $getDustColor(::Block const&) const;
105
106 MCFOLD ::std::string $getDustParticleName(::Block const&) const;
107
108 MCFOLD void $animateTick(::BlockAnimateTickData const&) const;
109
110 MCFOLD bool $falling() const;
111
112 MCAPI void $onLand(::BlockSource& region, ::BlockPos const& pos) const;
113
114 MCFOLD bool $isCraftingBlock() const;
115
116 MCFOLD bool $breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const;
117
118 MCFOLD bool
119 $getLiquidClipVolume(::Block const& block, ::BlockSource& region, ::BlockPos const& pos, ::AABB& includeBox) const;
120
121 MCFOLD bool $isInteractiveBlock() const;
122 // NOLINTEND
123
124public:
125 // vftables
126 // NOLINTBEGIN
127 MCAPI static void** $vftable();
128 // NOLINTEND
129};
Definition AABB.h:16
Definition AnvilBlock.h:25
Definition BaseGameVersion.h:13
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition FallingBlock.h:20
Definition GetCollisionShapeInterface.h:13
Definition HashedString.h:5
Definition IConstBlockSource.h:24
Definition Player.h:119
Definition optional_ref.h:10
Definition BlockAnimateTickData.h:5