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 ItemStack;
15class Player;
17namespace BlockEvents { class ActorInternalEvent; }
18namespace BlockEvents { class BlockPlayerInteractEvent; }
19// clang-format on
20
21class BeehiveBlock : public ::FaceDirectionalActorBlock {
22public:
23 // prevent constructor by default
24 BeehiveBlock();
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 virtual int getVariant(::Block const& block) const /*override*/;
30
31 virtual void animateTickBedrockLegacy(::BlockAnimateTickData const& tickData) const /*override*/;
32
33 virtual bool hasComparatorSignal() const /*override*/;
34
35 virtual int getComparatorSignal(::BlockSource& block, ::BlockPos const&, ::Block const&, uchar) const /*override*/;
36
37 virtual ::Block const* playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const
38 /*override*/;
39
40 virtual ::Block const* getNextBlockPermutation(::Block const& currentBlock) const /*override*/;
41
42 virtual uchar getMappedFace(uchar face, ::Block const& block) const /*override*/;
43 // NOLINTEND
44
45public:
46 // member functions
47 // NOLINTBEGIN
48 MCAPI BeehiveBlock(::std::string const& nameId, int id);
49
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 bool _hasLitCampfireBelow(::BlockSource const& region, ::BlockPos pos) const;
59
60 MCAPI void _playBottleSound(::BlockSource& region, ::BlockPos const& pos) const;
61
62 MCAPI void _playShearSound(::BlockSource& region, ::BlockPos const& pos) const;
63
64 MCAPI void emitHoneyComb(::BlockSource& region, ::BlockPos const& pos) const;
65
66 MCAPI void evictAll(::BlockSource& region, ::BlockPos const& pos, bool angry) const;
67
68 MCAPI void onEvent(::BlockEvents::ActorInternalEvent& event) const;
69
70 MCAPI void onPlayerPlace(::BlockSource& region, ::BlockPos const& pos) const;
71
72 MCAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
73 // NOLINTEND
74
75public:
76 // static functions
77 // NOLINTBEGIN
78 MCAPI static void deliverNectar(::BlockSource& region, ::Block const& block, ::BlockPos const& pos);
79
80 MCAPI static ::ItemStack
81 getHiveItemWithOccupants(::Block const& block, ::BeehiveBlockActor const* beehiveBlockActor);
82
83 MCAPI static bool hasHoneyToHarvest(::Block const& block);
84
85 MCAPI static void resetHoneyLevel(::BlockSource& region, ::Block const& block, ::BlockPos const& pos);
86 // NOLINTEND
87
88public:
89 // constructor thunks
90 // NOLINTBEGIN
91 MCAPI void* $ctor(::std::string const& nameId, int id);
92 // NOLINTEND
93
94public:
95 // virtual function thunks
96 // NOLINTBEGIN
97 MCAPI int $getVariant(::Block const& block) const;
98
99 MCAPI void $animateTickBedrockLegacy(::BlockAnimateTickData const& tickData) const;
100
101 MCFOLD bool $hasComparatorSignal() const;
102
103 MCAPI int $getComparatorSignal(::BlockSource& block, ::BlockPos const&, ::Block const&, uchar) const;
104
105 MCAPI ::Block const* $playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const;
106
107 MCAPI ::Block const* $getNextBlockPermutation(::Block const& currentBlock) const;
108
109 MCAPI uchar $getMappedFace(uchar face, ::Block const& block) const;
110
111
112 // NOLINTEND
113
114public:
115 // vftables
116 // NOLINTBEGIN
117 MCAPI static void** $vftable();
118 // NOLINTEND
119};
Definition BeehiveBlockActor.h:21
Definition ActorInternalEvent.h:17
Definition BlockPlayerInteractEvent.h:20
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
static MCAPI void ** $vftable()
Definition ItemStack.h:35
Definition Player.h:137
Definition BlockAnimateTickData.h:14