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 Experiments;
16class ItemStack;
17class Player;
19namespace BlockEvents { class BlockPlayerInteractEvent; }
20// clang-format on
21
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 // vIndex: 118
27 virtual int getVariant(::Block const& block) const /*override*/;
28
29 // vIndex: 100
30 virtual void executeEvent(
31 ::BlockSource& region,
32 ::BlockPos const& pos,
33 ::Block const& block,
34 ::std::string const& eventName,
35 ::Actor& sourceEntity
36 ) const /*override*/;
37
38 // vIndex: 123
39 virtual void animateTickBedrockLegacy(::BlockAnimateTickData const& tickData) const /*override*/;
40
41 // vIndex: 105
42 virtual bool hasComparatorSignal() const /*override*/;
43
44 // vIndex: 106
45 virtual int getComparatorSignal(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, uchar dir) const
46 /*override*/;
47
48 // vIndex: 89
49 virtual ::Block const* playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const
50 /*override*/;
51
52 // vIndex: 2
53 virtual ::Block const* getNextBlockPermutation(::Block const& currentBlock) const /*override*/;
54
55 // vIndex: 121
56 virtual uchar getMappedFace(uchar face, ::Block const& block) const /*override*/;
57
58 // vIndex: 131
59 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
60
61 // vIndex: 0
62 virtual ~BeehiveBlock() /*override*/ = default;
63 // NOLINTEND
64
65public:
66 // member functions
67 // NOLINTBEGIN
68 MCAPI void _fillHoneyBottle(
69 ::Player& player,
70 ::ItemStack& emptyBottle,
71 ::ItemStack& honeyBottle,
72 ::BlockSource& region,
73 ::BlockPos const& pos
74 ) const;
75
76 MCAPI void emitHoneyComb(::BlockSource& region, ::BlockPos const& pos) const;
77
78 MCAPI void evictAll(::BlockSource& region, ::BlockPos const& pos, bool angry) const;
79
80 MCAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
81 // NOLINTEND
82
83public:
84 // static functions
85 // NOLINTBEGIN
86 MCAPI static ::BeehiveBlockActor* _getBeehiveBlockActor(::BlockSource& region, ::BlockPos const& pos);
87
88 MCAPI static ::ItemStack
89 getHiveItemWithOccupants(::Block const& block, ::BeehiveBlockActor const* beehiveBlockActor);
90
91 MCAPI static void resetHoneyLevel(::BlockSource& region, ::Block const& block, ::BlockPos const& pos);
92 // NOLINTEND
93
94public:
95 // virtual function thunks
96 // NOLINTBEGIN
97 MCAPI int $getVariant(::Block const& block) 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
119 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
120 // NOLINTEND
121
122public:
123 // vftables
124 // NOLINTBEGIN
125 MCAPI static void** $vftable();
126 // NOLINTEND
127};
Definition Actor.h:102
Definition BeehiveBlockActor.h:19
Definition BeehiveBlock.h:22
Definition BlockPlayerInteractEvent.h:17
Definition BlockPos.h:17
Definition BlockSource.h:66
Definition Block.h:37
Definition Experiments.h:14
Definition FaceDirectionalActorBlock.h:18
Definition ItemStack.h:23
Definition Player.h:123
Definition BlockAnimateTickData.h:14