LeviLamina
Loading...
Searching...
No Matches
RespawnAnchorBlock.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 Block;
11class BlockPos;
12class BlockSource;
13class Experiments;
14class Level;
15class Player;
17struct Brightness;
18namespace BlockEvents { class BlockPlaceEvent; }
19// clang-format on
20
22public:
23 // virtual functions
24 // NOLINTBEGIN
25 // vIndex: 118
26 virtual int getVariant(::Block const& block) const /*override*/;
27
28 // vIndex: 123
29 virtual void animateTickBedrockLegacy(::BlockAnimateTickData const& tickData) const /*override*/;
30
31 // vIndex: 139
32 virtual bool use(::Player& player, ::BlockPos const& anchorBlockPos, uchar) const /*override*/;
33
34 // vIndex: 138
35 virtual bool isInteractiveBlock() const /*override*/;
36
37 // vIndex: 126
38 virtual ::Brightness getLightEmission(::Block const& block) const /*override*/;
39
40 // vIndex: 109
41 virtual bool canSpawnAt(::BlockSource const& region, ::BlockPos const& pos) const /*override*/;
42
43 // vIndex: 110
44 virtual void notifySpawnedAt(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
45
46 // vIndex: 105
47 virtual bool hasComparatorSignal() const /*override*/;
48
49 // vIndex: 106
50 virtual int getComparatorSignal(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, uchar dir) const
51 /*override*/;
52
53 // vIndex: 131
54 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
55
56 // vIndex: 0
57 virtual ~RespawnAnchorBlock() /*override*/ = default;
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
63 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
64 // NOLINTEND
65
66public:
67 // static functions
68 // NOLINTBEGIN
69 MCAPI static void _bumpCharge(::BlockSource& region, ::BlockPos const& pos, ::Player* source, short delta);
70
71 MCAPI static void
72 _explode(::Player& player, ::BlockPos const& anchorBlockPos, ::BlockSource& region, ::Level& level);
73
74 MCAPI static bool
75 _trySetSpawn(::Player& player, ::BlockPos const& anchorBlockPos, ::BlockSource& region, ::Level& level);
76 // NOLINTEND
77
78public:
79 // destructor thunk
80 // NOLINTBEGIN
81
82 // NOLINTEND
83
84public:
85 // virtual function thunks
86 // NOLINTBEGIN
87 MCAPI int $getVariant(::Block const& block) const;
88
89 MCAPI void $animateTickBedrockLegacy(::BlockAnimateTickData const& tickData) const;
90
91 MCAPI bool $use(::Player& player, ::BlockPos const& anchorBlockPos, uchar) const;
92
93 MCFOLD bool $isInteractiveBlock() const;
94
95 MCAPI ::Brightness $getLightEmission(::Block const& block) const;
96
97 MCAPI bool $canSpawnAt(::BlockSource const& region, ::BlockPos const& pos) const;
98
99 MCAPI void $notifySpawnedAt(::BlockSource& region, ::BlockPos const& pos) const;
100
101 MCFOLD bool $hasComparatorSignal() const;
102
103 MCAPI int $getComparatorSignal(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, uchar dir) const;
104
105 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
106 // NOLINTEND
107
108public:
109 // vftables
110 // NOLINTBEGIN
111 MCAPI static void** $vftable();
112 // NOLINTEND
113};
Definition BlockPlaceEvent.h:15
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition Experiments.h:14
Definition Level.h:234
Definition Player.h:119
Definition RespawnAnchorBlock.h:21
Definition BlockAnimateTickData.h:5
Definition Brightness.h:8