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 MCNAPI void _fillHoneyBottle(
69 ::Player& player,
70 ::ItemStack& emptyBottle,
71 ::ItemStack& honeyBottle,
72 ::BlockSource& region,
73 ::BlockPos const& pos
74 ) const;
75
76 MCNAPI void emitHoneyComb(::BlockSource& region, ::BlockPos const& pos) const;
77
78 MCNAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
79 // NOLINTEND
80
81public:
82 // static functions
83 // NOLINTBEGIN
84 MCNAPI static ::ItemStack
85 getHiveItemWithOccupants(::Block const& block, ::BeehiveBlockActor const* beehiveBlockActor);
86
87 MCNAPI static void resetHoneyLevel(::BlockSource& region, ::Block const& block, ::BlockPos const& pos);
88 // NOLINTEND
89
90public:
91 // virtual function thunks
92 // NOLINTBEGIN
93 MCNAPI int $getVariant(::Block const& block) const;
94
95 MCNAPI 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 MCNAPI void $animateTickBedrockLegacy(::BlockAnimateTickData const& tickData) const;
104
105 MCNAPI bool $hasComparatorSignal() const;
106
107 MCNAPI int
108 $getComparatorSignal(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, uchar dir) const;
109
110 MCNAPI ::Block const* $playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const;
111
112 MCNAPI ::Block const* $getNextBlockPermutation(::Block const& currentBlock) const;
113
114 MCNAPI uchar $getMappedFace(uchar face, ::Block const& block) const;
115
117 // NOLINTEND
118
119public:
120 // vftables
121 // NOLINTBEGIN
122 MCNAPI static void** $vftable();
123 // NOLINTEND
124};
Definition Actor.h:103
Definition BeehiveBlockActor.h:19
Definition BeehiveBlock.h:22
MCAPI void _fillHoneyBottle(::Player &player, ::ItemStack &emptyBottle, ::ItemStack &honeyBottle, ::BlockSource &region, ::BlockPos const &pos) const
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
MCAPI int $getVariant(::Block const &block) const
static MCAPI ::ItemStack getHiveItemWithOccupants(::Block const &block, ::BeehiveBlockActor const *beehiveBlockActor)
MCAPI void $executeEvent(::BlockSource &region, ::BlockPos const &pos, ::Block const &block, ::std::string const &eventName, ::Actor &sourceEntity) const
MCAPI::Block const * $playerWillDestroy(::Player &player, ::BlockPos const &pos, ::Block const &block) const
MCAPI bool $hasComparatorSignal() const
MCAPI void emitHoneyComb(::BlockSource &region, ::BlockPos const &pos) const
MCAPI void use(::BlockEvents::BlockPlayerInteractEvent &eventData) const
MCAPI void $_addHardCodedBlockComponents(::Experiments const &)
MCAPI::Block const * $getNextBlockPermutation(::Block const &currentBlock) const
MCAPI uchar $getMappedFace(uchar face, ::Block const &block) const
static MCAPI void resetHoneyLevel(::BlockSource &region, ::Block const &block, ::BlockPos const &pos)
Definition BlockPlayerInteractEvent.h:17
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:119
Definition BlockAnimateTickData.h:5