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;
17class Experiments;
19class HashedString;
22namespace BlockEvents { class BlockPlayerInteractEvent; }
23namespace mce { class Color; }
24// clang-format on
25
26class AnvilBlock : public ::FallingBlock {
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 // vIndex: 5
31 virtual ::AABB getCollisionShape(
32 ::Block const& block,
34 ::BlockPos const& pos,
36 ) const /*override*/;
37
38 // vIndex: 9
39 virtual ::AABB const&
40 getOutline(::Block const& block, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const
41 /*override*/;
42
43 // vIndex: 147
44 virtual ::mce::Color getDustColor(::Block const&) const /*override*/;
45
46 // vIndex: 148
47 virtual ::std::string getDustParticleName(::Block const&) const /*override*/;
48
49 // vIndex: 123
50 virtual void animateTick(::BlockAnimateTickData const&) const /*override*/;
51
52 // vIndex: 149
53 virtual bool falling() const /*override*/;
54
55 // vIndex: 150
56 virtual void onLand(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
57
58 // vIndex: 29
59 virtual bool isCraftingBlock() const /*override*/;
60
61 // vIndex: 83
62 virtual bool breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const /*override*/;
63
64 // vIndex: 13
65 virtual bool
66 getLiquidClipVolume(::Block const& block, ::BlockSource& region, ::BlockPos const& pos, ::AABB& includeBox) const
67 /*override*/;
68
69 // vIndex: 136
70 virtual bool isInteractiveBlock() const /*override*/;
71
72 // vIndex: 22
73 virtual bool canProvideSupport(::Block const&, uchar face, ::BlockSupportType type) const /*override*/;
74
75 // vIndex: 130
76 virtual void _addHardCodedBlockComponents(::Experiments const& experiments) /*override*/;
77
78 // vIndex: 0
79 virtual ~AnvilBlock() /*override*/ = default;
80 // NOLINTEND
81
82public:
83 // member functions
84 // NOLINTBEGIN
85 MCFOLD void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
86 // NOLINTEND
87
88public:
89 // static functions
90 // NOLINTBEGIN
91 MCAPI static ::AABB const& _getShape(::BlockPos const& pos, ::Block const& block, ::AABB& bufferValue);
92
93 MCAPI static int getDamageForName(::HashedString const& name);
94 // NOLINTEND
95
96public:
97 // virtual function thunks
98 // NOLINTBEGIN
99 MCAPI ::AABB $getCollisionShape(
100 ::Block const& block,
101 ::IConstBlockSource const&,
102 ::BlockPos const& pos,
104 ) const;
105
106 MCAPI ::AABB const&
107 $getOutline(::Block const& block, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const;
108
109 MCFOLD ::mce::Color $getDustColor(::Block const&) const;
110
111 MCFOLD ::std::string $getDustParticleName(::Block const&) const;
112
113 MCFOLD void $animateTick(::BlockAnimateTickData const&) const;
114
115 MCFOLD bool $falling() const;
116
117 MCAPI void $onLand(::BlockSource& region, ::BlockPos const& pos) const;
118
119 MCFOLD bool $isCraftingBlock() const;
120
121 MCFOLD bool $breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const;
122
123 MCFOLD bool
124 $getLiquidClipVolume(::Block const& block, ::BlockSource& region, ::BlockPos const& pos, ::AABB& includeBox) const;
125
126 MCFOLD bool $isInteractiveBlock() const;
127
128 MCFOLD bool $canProvideSupport(::Block const&, uchar face, ::BlockSupportType type) const;
129
130 MCAPI void $_addHardCodedBlockComponents(::Experiments const& experiments);
131 // NOLINTEND
132
133public:
134 // vftables
135 // NOLINTBEGIN
136 MCNAPI static void** $vftable();
137 // NOLINTEND
138};
Definition AABB.h:18
Definition AnvilBlock.h:26
static MCAPI void ** $vftable()
Definition BaseGameVersion.h:8
Definition BlockPlayerInteractEvent.h:17
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:38
Definition Experiments.h:14
Definition FallingBlock.h:20
Definition GetCollisionShapeInterface.h:13
Definition HashedString.h:5
Definition IConstBlockSource.h:24
Definition optional_ref.h:10
Definition BlockAnimateTickData.h:5