LeviLamina
Loading...
Searching...
No Matches
BeehiveBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/FaceDirectionalActorBlock.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
12class Block;
13class BlockPos;
14class BlockSource;
15class ItemStack;
16class Player;
18// clang-format on
19
21public:
22 // virtual functions
23 // NOLINTBEGIN
24 // vIndex: 118
25 virtual int getVariant(::Block const& block) const /*override*/;
26
27 // vIndex: 139
28 virtual bool use(::Player& player, ::BlockPos const& pos, uchar) const /*override*/;
29
30 // vIndex: 100
31 virtual void executeEvent(
32 ::BlockSource& region,
33 ::BlockPos const& pos,
34 ::Block const& block,
35 ::std::string const& eventName,
36 ::Actor& sourceEntity
37 ) const /*override*/;
38
39 // vIndex: 123
40 virtual void animateTickBedrockLegacy(::BlockAnimateTickData const& tickData) const /*override*/;
41
42 // vIndex: 105
43 virtual bool hasComparatorSignal() const /*override*/;
44
45 // vIndex: 106
46 virtual int getComparatorSignal(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, uchar dir) const
47 /*override*/;
48
49 // vIndex: 89
50 virtual ::Block const* playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const
51 /*override*/;
52
53 // vIndex: 2
54 virtual ::Block const* getNextBlockPermutation(::Block const& currentBlock) const /*override*/;
55
56 // vIndex: 121
57 virtual uchar getMappedFace(uchar face, ::Block const& block) const /*override*/;
58
59 // vIndex: 0
60 virtual ~BeehiveBlock() /*override*/ = default;
61 // NOLINTEND
62
63public:
64 // member functions
65 // NOLINTBEGIN
66 MCAPI void _fillHoneyBottle(
67 ::Player& player,
68 ::ItemStack& emptyBottle,
69 ::ItemStack& honeyBottle,
70 ::BlockSource& region,
71 ::BlockPos const& pos
72 ) const;
73
74 MCAPI void emitHoneyComb(::BlockSource& region, ::BlockPos const& pos) const;
75 // NOLINTEND
76
77public:
78 // static functions
79 // NOLINTBEGIN
80 MCAPI static ::ItemStack
81 getHiveItemWithOccupants(::Block const& block, ::BeehiveBlockActor const* beehiveBlockActor);
82
83 MCAPI static void resetHoneyLevel(::BlockSource& region, ::Block const& block, ::BlockPos const& pos);
84 // NOLINTEND
85
86public:
87 // destructor thunk
88 // NOLINTBEGIN
89
90 // NOLINTEND
91
92public:
93 // virtual function thunks
94 // NOLINTBEGIN
95 MCAPI int $getVariant(::Block const& block) const;
96
97 MCAPI bool $use(::Player& player, ::BlockPos const& pos, uchar) const;
98
99 MCAPI void $executeEvent(
100 ::BlockSource& region,
101 ::BlockPos const& pos,
102 ::Block const& block,
103 ::std::string const& eventName,
104 ::Actor& sourceEntity
105 ) const;
106
107 MCAPI void $animateTickBedrockLegacy(::BlockAnimateTickData const& tickData) const;
108
109 MCFOLD bool $hasComparatorSignal() const;
110
111 MCAPI int $getComparatorSignal(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, uchar dir) const;
112
113 MCAPI ::Block const* $playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const;
114
115 MCAPI ::Block const* $getNextBlockPermutation(::Block const& currentBlock) const;
116
117 MCAPI uchar $getMappedFace(uchar face, ::Block const& block) const;
118 // NOLINTEND
119
120public:
121 // vftables
122 // NOLINTBEGIN
123 MCAPI static void** $vftable();
124 // NOLINTEND
125};
Definition Actor.h:104
Definition BeehiveBlockActor.h:19
Definition BeehiveBlock.h:20
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition FaceDirectionalActorBlock.h:18
Definition ItemStack.h:25
Definition Player.h:119
Definition BlockAnimateTickData.h:5