LeviLamina
Loading...
Searching...
No Matches
ChiseledBookshelfBlock.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 Block;
11class BlockActor;
12class BlockPos;
13class BlockSource;
15class Experiments;
16class ItemInstance;
17class ItemStack;
18class Player;
19namespace BlockEvents { class BlockPlayerInteractEvent; }
20// clang-format on
21
23public:
24 // ChiseledBookshelfBlock inner types define
25 enum class SlotState : int {
26 Free = 0,
27 Occupied = 1,
28 Invalid = 2,
29 };
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 // vIndex: 136
35 virtual bool isInteractiveBlock() const /*override*/;
36
37 // vIndex: 105
38 virtual bool hasComparatorSignal() const /*override*/;
39
40 // vIndex: 106
41 virtual int getComparatorSignal(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, uchar dir) const
42 /*override*/;
43
44 // vIndex: 132
45 virtual void onRemove(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
46
47 // vIndex: 90
48 virtual ::ItemInstance asItemInstance(::Block const& block, ::BlockActor const*) const /*override*/;
49
50 // vIndex: 131
51 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
52
53 // vIndex: 0
54 virtual ~ChiseledBookshelfBlock() /*override*/ = default;
55 // NOLINTEND
56
57public:
58 // member functions
59 // NOLINTBEGIN
60 MCAPI bool _retrieveBook(::Player& player, ::ChiseledBookshelfBlockActor& bookshelfActor, int hitSlot) const;
61
62 MCAPI void
63 _setBook(::Player& player, ::ItemStack heldItem, ::ChiseledBookshelfBlockActor& bookshelfActor, int hitSlot) const;
64
65 MCAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
66 // NOLINTEND
67
68public:
69 // virtual function thunks
70 // NOLINTBEGIN
71 MCFOLD bool $isInteractiveBlock() const;
72
73 MCFOLD bool $hasComparatorSignal() const;
74
75 MCAPI int $getComparatorSignal(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, uchar dir) const;
76
77 MCAPI void $onRemove(::BlockSource& region, ::BlockPos const& pos) const;
78
79 MCFOLD ::ItemInstance $asItemInstance(::Block const& block, ::BlockActor const*) const;
80
81 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
82 // NOLINTEND
83
84public:
85 // vftables
86 // NOLINTBEGIN
87 MCNAPI static void** $vftable();
88 // NOLINTEND
89};
Definition BlockActor.h:32
Definition BlockPlayerInteractEvent.h:17
Definition BlockPos.h:17
Definition BlockSource.h:66
Definition Block.h:37
Definition ChiseledBookshelfBlockActor.h:22
Definition ChiseledBookshelfBlock.h:22
static MCAPI void ** $vftable()
Definition Experiments.h:14
Definition FaceDirectionalActorBlock.h:18
Definition ItemInstance.h:15
Definition ItemStack.h:23
Definition Player.h:123