Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
StructureBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/ActorBlockBase.h"
7#include "mc/world/level/block/BlockType.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class Block;
13class BlockPos;
14class BlockSource;
15class Vec3;
16namespace BlockEvents { class BlockPlayerInteractEvent; }
17namespace BlockEvents { class BlockRedstoneUpdateEvent; }
18// clang-format on
19
20class StructureBlock : public ::ActorBlock {
21public:
22 // virtual functions
23 // NOLINTBEGIN
24 virtual bool isInteractiveBlock() const /*override*/;
25
26 virtual bool isConsumerComponent() const /*override*/;
27
28 virtual ::Block const&
29 getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue) const
30 /*override*/;
31 // NOLINTEND
32
33public:
34 // member functions
35 // NOLINTBEGIN
37
38 MCNAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
39 // NOLINTEND
40
41public:
42 // static functions
43 // NOLINTBEGIN
44 MCNAPI static void _onSetupRedstoneComponent(::BlockSource& region, ::BlockPos const& pos);
45 // NOLINTEND
46
47public:
48 // virtual function thunks
49 // NOLINTBEGIN
50 MCNAPI bool $isInteractiveBlock() const;
51
52 MCNAPI bool $isConsumerComponent() const;
53
54 MCNAPI ::Block const& $getPlacementBlock(
55 ::Actor const& by,
56 ::BlockPos const& pos,
57 uchar face,
58 ::Vec3 const& clickPos,
59 int itemValue
60 ) const;
61
62
63 // NOLINTEND
64
65public:
66 // vftables
67 // NOLINTBEGIN
68 MCNAPI static void** $vftable();
69 // NOLINTEND
70};
Definition Actor.h:116
Definition BlockPlayerInteractEvent.h:18
Definition BlockRedstoneUpdateEvent.h:15
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
Definition StructureBlock.h:20
MCAPI void _onRedstoneUpdate(::BlockEvents::BlockRedstoneUpdateEvent &blockEvent) const
static MCAPI void ** $vftable()
MCAPI bool $isConsumerComponent() const
MCAPI bool $isInteractiveBlock() const
MCAPI void use(::BlockEvents::BlockPlayerInteractEvent &eventData) const
MCAPI::Block const & $getPlacementBlock(::Actor const &by, ::BlockPos const &pos, uchar face, ::Vec3 const &clickPos, int itemValue) const
static MCAPI void _onSetupRedstoneComponent(::BlockSource &region, ::BlockPos const &pos)
Definition Vec3.h:10