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/BlockLegacy.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class Block;
13class BlockPos;
14class BlockSource;
15class Experiments;
16class Vec3;
17namespace BlockEvents { class BlockPlaceEvent; }
18namespace BlockEvents { class BlockPlayerInteractEvent; }
19// clang-format on
20
22public:
23 // virtual functions
24 // NOLINTBEGIN
25 // vIndex: 136
26 virtual bool isInteractiveBlock() const /*override*/;
27
28 // vIndex: 44
29 virtual bool isConsumerComponent() const /*override*/;
30
31 // vIndex: 66
32 virtual void setupRedstoneComponent(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
33
34 // vIndex: 60
35 virtual void onRedstoneUpdate(::BlockSource& region, ::BlockPos const& pos, int strength, bool isFirstTime) const
36 /*override*/;
37
38 // vIndex: 91
39 virtual ::Block const&
40 getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue) const
41 /*override*/;
42
43 // vIndex: 130
44 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
45
46 // vIndex: 0
47 virtual ~StructureBlock() /*override*/ = default;
48 // NOLINTEND
49
50public:
51 // member functions
52 // NOLINTBEGIN
53 MCFOLD void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
54
55 MCFOLD void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
56 // NOLINTEND
57
58public:
59 // virtual function thunks
60 // NOLINTBEGIN
61 MCFOLD bool $isInteractiveBlock() const;
62
63 MCFOLD bool $isConsumerComponent() const;
64
65 MCAPI void $setupRedstoneComponent(::BlockSource& region, ::BlockPos const& pos) const;
66
67 MCAPI void $onRedstoneUpdate(::BlockSource& region, ::BlockPos const& pos, int strength, bool isFirstTime) const;
68
69 MCAPI ::Block const& $getPlacementBlock(
70 ::Actor const& by,
71 ::BlockPos const& pos,
72 uchar face,
73 ::Vec3 const& clickPos,
74 int itemValue
75 ) const;
76
77 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
78 // NOLINTEND
79
80public:
81 // vftables
82 // NOLINTBEGIN
83 MCNAPI static void** $vftable();
84 // NOLINTEND
85};
Definition ActorBlockBase.h:6
Definition Actor.h:103
Definition BlockPlaceEvent.h:16
Definition BlockPlayerInteractEvent.h:17
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:38
Definition Experiments.h:14
Definition StructureBlock.h:21
static MCAPI void ** $vftable()
Definition Vec3.h:10