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