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