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: 117
27 virtual int getVariant(::Block const& block) const /*override*/;
28
29 // vIndex: 99
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: 122
39 virtual void animateTickBedrockLegacy(::BlockAnimateTickData const& tickData) const /*override*/;
40
41 // vIndex: 104
42 virtual bool hasComparatorSignal() const /*override*/;
43
44 // vIndex: 105
45 virtual int getComparatorSignal(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, uchar dir) const
46 /*override*/;
47
48 // vIndex: 88
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: 120
56 virtual uchar getMappedFace(uchar face, ::Block const& block) const /*override*/;
57
58 // vIndex: 130
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 use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
79 // NOLINTEND
80
81public:
82 // static functions
83 // NOLINTBEGIN
84 MCAPI static ::ItemStack
85 getHiveItemWithOccupants(::Block const& block, ::BeehiveBlockActor const* beehiveBlockActor);
86
87 MCAPI static void resetHoneyLevel(::BlockSource& region, ::Block const& block, ::BlockPos const& pos);
88 // NOLINTEND
89
90public:
91 // virtual function thunks
92 // NOLINTBEGIN
93 MCAPI int $getVariant(::Block const& block) const;
94
95 MCAPI void $executeEvent(
96 ::BlockSource& region,
97 ::BlockPos const& pos,
98 ::Block const& block,
99 ::std::string const& eventName,
100 ::Actor& sourceEntity
101 ) const;
102
103 MCAPI void $animateTickBedrockLegacy(::BlockAnimateTickData const& tickData) const;
104
105 MCFOLD bool $hasComparatorSignal() const;
106
107 MCAPI int $getComparatorSignal(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, uchar dir) const;
108
109 MCAPI ::Block const* $playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const;
110
111 MCAPI ::Block const* $getNextBlockPermutation(::Block const& currentBlock) const;
112
113 MCAPI uchar $getMappedFace(uchar face, ::Block const& block) const;
114
115 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
116 // NOLINTEND
117
118public:
119 // vftables
120 // NOLINTBEGIN
121 MCAPI static void** $vftable();
122 // NOLINTEND
123};
Definition Actor.h:103
Definition BeehiveBlockActor.h:19
Definition BeehiveBlock.h:22
Definition BlockPlayerInteractEvent.h:18
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:38
Definition Experiments.h:14
Definition FaceDirectionalActorBlock.h:18
Definition ItemStack.h:25
Definition Player.h:120
Definition BlockAnimateTickData.h:5