LeviLamina
Loading...
Searching...
No Matches
CakeBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/BlockLegacy.h"
7
8// auto generated forward declare list
9// clang-format off
10class AABB;
11class Actor;
12class Block;
13class BlockActor;
14class BlockPos;
15class BlockSource;
16class Experiments;
17class ItemInstance;
18class Player;
19namespace BlockEvents { class BlockPlayerInteractEvent; }
20namespace BlockEvents { class BlockQueuedTickEvent; }
21// clang-format on
22
23class CakeBlock : public ::BlockLegacy {
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 // vIndex: 79
28 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const /*override*/;
29
30 // vIndex: 11
31 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB& bufferAABB) const /*override*/;
32
33 // vIndex: 138
34 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
35
36 // vIndex: 86
37 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
38 /*override*/;
39
40 // vIndex: 117
41 virtual int getVariant(::Block const& block) const /*override*/;
42
43 // vIndex: 89
44 virtual ::ItemInstance asItemInstance(::Block const&, ::BlockActor const*) const /*override*/;
45
46 // vIndex: 104
47 virtual bool hasComparatorSignal() const /*override*/;
48
49 // vIndex: 105
50 virtual int getComparatorSignal(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, uchar dir) const
51 /*override*/;
52
53 // vIndex: 56
54 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
55 /*override*/;
56
57 // vIndex: 130
58 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
59
60 // vIndex: 0
61 virtual ~CakeBlock() /*override*/ = default;
62 // NOLINTEND
63
64public:
65 // member functions
66 // NOLINTBEGIN
67 MCFOLD void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
68
69 MCAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
70 // NOLINTEND
71
72public:
73 // static functions
74 // NOLINTBEGIN
75 MCAPI static void
76 removeCakeSlice(::Player& player, ::BlockSource& region, ::BlockPos const& pos, ::Block const* cakeBlock);
77 // NOLINTEND
78
79public:
80 // virtual function thunks
81 // NOLINTBEGIN
82 MCFOLD bool $mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const;
83
84 MCAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB& bufferAABB) const;
85
86 MCFOLD bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
87
88 MCFOLD void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
89
90 MCAPI int $getVariant(::Block const& block) const;
91
92 MCFOLD ::ItemInstance $asItemInstance(::Block const&, ::BlockActor const*) const;
93
94 MCFOLD bool $hasComparatorSignal() const;
95
96 MCAPI int $getComparatorSignal(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, uchar dir) const;
97
98 MCFOLD bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
99
100 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
101 // NOLINTEND
102
103public:
104 // vftables
105 // NOLINTBEGIN
106 MCNAPI static void** $vftable();
107 // NOLINTEND
108};
Definition AABB.h:18
Definition Actor.h:103
Definition BlockActor.h:32
Definition BlockPlayerInteractEvent.h:17
Definition BlockQueuedTickEvent.h:16
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:38
Definition CakeBlock.h:23
static MCAPI void ** $vftable()
Definition Experiments.h:14
Definition ItemInstance.h:16
Definition Player.h:119