LeviLamina
Loading...
Searching...
No Matches
LecternBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/Direction.h"
7#include "mc/world/level/block/ActorBlockBase.h"
8#include "mc/world/level/block/BlockLegacy.h"
9#include "mc/world/level/block/BlockSupportType.h"
10
11// auto generated forward declare list
12// clang-format off
13class Actor;
14class Block;
15class BlockPos;
16class BlockSource;
17class Experiments;
18class Player;
19class Vec3;
20namespace BlockEvents { class BlockPlaceEvent; }
21namespace BlockEvents { class BlockPlayerInteractEvent; }
22namespace BlockEvents { class BlockQueuedTickEvent; }
23// clang-format on
24
25class LecternBlock : public ::ActorBlock {
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 // vIndex: 91
30 virtual ::Block const&
31 getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue) const
32 /*override*/;
33
34 // vIndex: 136
35 virtual bool isInteractiveBlock() const /*override*/;
36
37 // vIndex: 22
38 virtual bool canProvideSupport(::Block const&, uchar face, ::BlockSupportType) const /*override*/;
39
40 // vIndex: 56
41 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
42 /*override*/;
43
44 // vIndex: 88
45 virtual ::Block const* playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const
46 /*override*/;
47
48 // vIndex: 94
49 virtual bool attack(::Player* player, ::BlockPos const& pos) const /*override*/;
50
51 // vIndex: 104
52 virtual bool hasComparatorSignal() const /*override*/;
53
54 // vIndex: 105
55 virtual int getComparatorSignal(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, uchar dir) const
56 /*override*/;
57
58 // vIndex: 43
59 virtual bool isSignalSource() const /*override*/;
60
61 // vIndex: 66
62 virtual void setupRedstoneComponent(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
63
64 // vIndex: 53
65 virtual bool
66 shouldConnectToRedstone(::BlockSource& region, ::BlockPos const& pos, ::Direction::Type direction) const
67 /*override*/;
68
69 // vIndex: 130
70 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
71
72 // vIndex: 0
73 virtual ~LecternBlock() /*override*/ = default;
74 // NOLINTEND
75
76public:
77 // member functions
78 // NOLINTBEGIN
79 MCNAPI bool _dropBook(::Player& player, ::BlockPos const& pos) const;
80
81 MCNAPI void _updateRedstone(::BlockSource& region, ::BlockPos const& pos, bool powered) const;
82
83 MCNAPI void emitRedstonePulse(::BlockSource& region, ::BlockPos const& pos) const;
84
85 MCNAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
86
87 MCNAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
88
89 MCNAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
90 // NOLINTEND
91
92public:
93 // virtual function thunks
94 // NOLINTBEGIN
95 MCNAPI ::Block const& $getPlacementBlock(
96 ::Actor const& by,
97 ::BlockPos const& pos,
98 uchar face,
99 ::Vec3 const& clickPos,
100 int itemValue
101 ) const;
102
103 MCNAPI bool $isInteractiveBlock() const;
104
105 MCNAPI bool $canProvideSupport(::Block const&, uchar face, ::BlockSupportType) const;
106
107 MCNAPI bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
108
109 MCNAPI ::Block const* $playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const;
110
111 MCNAPI bool $attack(::Player* player, ::BlockPos const& pos) const;
112
113 MCNAPI bool $hasComparatorSignal() const;
114
115 MCNAPI int
116 $getComparatorSignal(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, uchar dir) const;
117
118 MCNAPI bool $isSignalSource() const;
119
120 MCNAPI void $setupRedstoneComponent(::BlockSource& region, ::BlockPos const& pos) const;
121
122 MCNAPI bool
123 $shouldConnectToRedstone(::BlockSource& region, ::BlockPos const& pos, ::Direction::Type direction) const;
124
126 // NOLINTEND
127
128public:
129 // vftables
130 // NOLINTBEGIN
131 MCNAPI static void** $vftable();
132 // NOLINTEND
133};
Definition ActorBlockBase.h:6
Definition Actor.h:103
Definition BlockPlaceEvent.h:16
Definition BlockPlayerInteractEvent.h:17
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:38
Definition Experiments.h:14
Definition LecternBlock.h:25
MCAPI bool $checkIsPathable(::Actor &entity, ::BlockPos const &lastPathPos, ::BlockPos const &pathPos) const
MCAPI bool $isInteractiveBlock() const
MCAPI void emitRedstonePulse(::BlockSource &region, ::BlockPos const &pos) const
MCAPI void use(::BlockEvents::BlockPlayerInteractEvent &eventData) const
MCAPI void onPlace(::BlockEvents::BlockPlaceEvent &eventData) const
MCAPI void $setupRedstoneComponent(::BlockSource &region, ::BlockPos const &pos) const
MCAPI bool $isSignalSource() const
MCAPI bool _dropBook(::Player &player, ::BlockPos const &pos) const
MCAPI bool $hasComparatorSignal() const
MCAPI::Block const & $getPlacementBlock(::Actor const &by, ::BlockPos const &pos, uchar face, ::Vec3 const &clickPos, int itemValue) const
MCAPI bool $attack(::Player *player, ::BlockPos const &pos) const
MCAPI bool $shouldConnectToRedstone(::BlockSource &region, ::BlockPos const &pos, ::Direction::Type direction) const
MCAPI int $getComparatorSignal(::BlockSource &region, ::BlockPos const &pos, ::Block const &block, uchar dir) const
MCAPI void $_addHardCodedBlockComponents(::Experiments const &)
MCAPI void _updateRedstone(::BlockSource &region, ::BlockPos const &pos, bool powered) const
MCAPI bool $canProvideSupport(::Block const &, uchar face, ::BlockSupportType) const
static MCAPI void ** $vftable()
MCAPI void tick(::BlockEvents::BlockQueuedTickEvent &eventData) const
MCAPI::Block const * $playerWillDestroy(::Player &player, ::BlockPos const &pos, ::Block const &block) const
Definition Player.h:119
Definition Vec3.h:10