Skip to content
LeviMC
English
AutoLightDark
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 MCNAPI void emitHoneyComb(::BlockSource& region, ::BlockPos const& pos) const;
46
47 MCNAPI void onEvent(::BlockEvents::ActorInternalEvent& event) const;
48
49 MCNAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
50 // NOLINTEND
51
52public:
53 // static functions
54 // NOLINTBEGIN
55 MCNAPI static void deliverNectar(::BlockSource& region, ::Block const& block, ::BlockPos const& pos);
56
57 MCNAPI static ::ItemStack
58 getHiveItemWithOccupants(::Block const& block, ::BeehiveBlockActor const* beehiveBlockActor);
59
60 MCNAPI static bool hasHoneyToHarvest(::Block const& block);
61 // NOLINTEND
62
63public:
64 // virtual function thunks
65 // NOLINTBEGIN
66 MCNAPI int $getVariant(::Block const& block) const;
67
68 MCNAPI void $animateTickBedrockLegacy(::BlockAnimateTickData const& tickData) const;
69
70 MCNAPI bool $hasComparatorSignal() const;
71
72 MCNAPI int
73 $getComparatorSignal(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, uchar dir) const;
74
75 MCAPI ::Block const* $playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const;
76
77 MCNAPI ::Block const* $getNextBlockPermutation(::Block const& currentBlock) const;
78
79 MCNAPI uchar $getMappedFace(uchar face, ::Block const& block) const;
80
81
82 // NOLINTEND
83
84public:
85 // vftables
86 // NOLINTBEGIN
87 MCNAPI static void** $vftable();
88 // NOLINTEND
89};
Definition BeehiveBlockActor.h:19
Definition BeehiveBlock.h:21
static MCAPI bool hasHoneyToHarvest(::Block const &block)
static MCAPI void ** $vftable()
MCAPI void $animateTickBedrockLegacy(::BlockAnimateTickData const &tickData) const
MCAPI int $getComparatorSignal(::BlockSource &region, ::BlockPos const &pos, ::Block const &block, uchar dir) const
static MCAPI void deliverNectar(::BlockSource &region, ::Block const &block, ::BlockPos const &pos)
MCAPI int $getVariant(::Block const &block) const
static MCAPI ::ItemStack getHiveItemWithOccupants(::Block const &block, ::BeehiveBlockActor const *beehiveBlockActor)
MCAPI void onEvent(::BlockEvents::ActorInternalEvent &event) const
MCAPI bool $hasComparatorSignal() const
MCAPI void emitHoneyComb(::BlockSource &region, ::BlockPos const &pos) const
MCAPI void use(::BlockEvents::BlockPlayerInteractEvent &eventData) const
MCAPI::Block const * $getNextBlockPermutation(::Block const &currentBlock) const
MCAPI uchar $getMappedFace(uchar face, ::Block const &block) const
Definition ActorInternalEvent.h:17
Definition BlockPlayerInteractEvent.h:18
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
Definition FaceDirectionalActorBlock.h:18
Definition ItemStack.h:26
Definition Player.h:131
Definition BlockAnimateTickData.h:14