LeviLamina
Loading...
Searching...
No Matches
CrafterBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/Flip.h"
7#include "mc/world/level/block/ActorBlockBase.h"
8#include "mc/world/level/block/BlockType.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class Block;
14class BlockPos;
15class BlockSource;
16class Vec3;
17namespace BlockEvents { class BlockPlayerInteractEvent; }
18namespace BlockEvents { class BlockQueuedTickEvent; }
19namespace BlockEvents { class BlockRedstoneUpdateEvent; }
20// clang-format on
21
22class CrafterBlock : public ::ActorBlock {
23public:
24 // prevent constructor by default
25 CrafterBlock();
26
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 virtual int getVariant(::Block const& block) const /*override*/;
31
32 virtual ::Block const&
33 getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue) const
34 /*override*/;
35
36 virtual void onRemove(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
37
38 virtual bool isInteractiveBlock() const /*override*/;
39
40 virtual bool isContainerBlock() const /*override*/;
41
42 virtual bool hasComparatorSignal() const /*override*/;
43
44 virtual int getComparatorSignal(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, uchar dir) const
45 /*override*/;
46
47 virtual ::Block const& getRenderBlock() const /*override*/;
48
49 virtual uchar getMappedFace(uchar face, ::Block const& block) const /*override*/;
50
51 virtual ::Flip getFaceFlip(uchar face, ::Block const& block) const /*override*/;
52
53 virtual bool allowStateMismatchOnPlacement(::Block const& clientTarget, ::Block const& serverTarget) const
54 /*override*/;
55 // NOLINTEND
56
57public:
58 // member functions
59 // NOLINTBEGIN
60 MCAPI CrafterBlock(::std::string const& nameId, int id);
61
62 MCAPI void _onRedstoneUpdate(::BlockEvents::BlockRedstoneUpdateEvent& blockEvent) const;
63
64 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
65
66 MCAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
67 // NOLINTEND
68
69public:
70 // constructor thunks
71 // NOLINTBEGIN
72 MCAPI void* $ctor(::std::string const& nameId, int id);
73 // NOLINTEND
74
75public:
76 // virtual function thunks
77 // NOLINTBEGIN
78 MCAPI int $getVariant(::Block const& block) const;
79
80 MCAPI ::Block const& $getPlacementBlock(
81 ::Actor const& by,
82 ::BlockPos const& pos,
83 uchar face,
84 ::Vec3 const& clickPos,
85 int itemValue
86 ) const;
87
88 MCFOLD void $onRemove(::BlockSource& region, ::BlockPos const& pos) const;
89
90 MCFOLD bool $isInteractiveBlock() const;
91
92 MCFOLD bool $isContainerBlock() const;
93
94 MCFOLD bool $hasComparatorSignal() const;
95
96 MCAPI int $getComparatorSignal(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, uchar dir) const;
97
98 MCAPI ::Block const& $getRenderBlock() const;
99
100 MCAPI uchar $getMappedFace(uchar face, ::Block const& block) const;
101
102 MCAPI ::Flip $getFaceFlip(uchar face, ::Block const& block) const;
103
104 MCFOLD bool $allowStateMismatchOnPlacement(::Block const& clientTarget, ::Block const& serverTarget) const;
105
106
107 // NOLINTEND
108
109public:
110 // vftables
111 // NOLINTBEGIN
112 MCAPI static void** $vftable();
113 // NOLINTEND
114};
Definition Actor.h:113
Definition BlockPlayerInteractEvent.h:18
Definition BlockQueuedTickEvent.h:16
Definition BlockRedstoneUpdateEvent.h:15
Definition BlockPos.h:17
Definition BlockSource.h:71
Definition Block.h:41
Definition Vec3.h:10