LeviLamina
Loading...
Searching...
No Matches
LanternBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/BlockType.h"
7
8// auto generated forward declare list
9// clang-format off
10class AABB;
11class Actor;
12class Block;
13class BlockPos;
14class BlockSource;
15class Experiments;
16class Vec3;
17namespace BlockEvents { class BlockQueuedTickEvent; }
18// clang-format on
19
20class LanternBlock : public ::BlockType {
21public:
22 // virtual functions
23 // NOLINTBEGIN
24 // vIndex: 11
25 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB& bufferAABB) const /*override*/;
26
27 // vIndex: 92
28 virtual ::Block const&
29 getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue) const
30 /*override*/;
31
32 // vIndex: 87
33 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
34 /*override*/;
35
36 // vIndex: 138
37 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
38
39 // vIndex: 64
40 virtual void movedByPiston(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
41
42 // vIndex: 79
43 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
44
45 // vIndex: 57
46 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
47 /*override*/;
48
49 // vIndex: 131
50 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
51
52 // vIndex: 0
53 virtual ~LanternBlock() /*override*/;
54 // NOLINTEND
55
56public:
57 // member functions
58 // NOLINTBEGIN
59 MCFOLD void _checkToQueueTick(::BlockSource& region, ::BlockPos const& pos) const;
60
61 MCAPI bool _couldHang(::BlockSource& region, ::BlockPos const& pos) const;
62
63 MCFOLD void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
64 // NOLINTEND
65
66public:
67 // destructor thunk
68 // NOLINTBEGIN
69 MCFOLD void $dtor();
70 // NOLINTEND
71
72public:
73 // virtual function thunks
74 // NOLINTBEGIN
75 MCAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB& bufferAABB) const;
76
77 MCAPI ::Block const& $getPlacementBlock(
78 ::Actor const& by,
79 ::BlockPos const& pos,
80 uchar face,
81 ::Vec3 const& clickPos,
82 int itemValue
83 ) const;
84
85 MCFOLD void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
86
87 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
88
89 MCFOLD void $movedByPiston(::BlockSource& region, ::BlockPos const& pos) const;
90
91 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
92
93 MCAPI bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
94
95 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
96 // NOLINTEND
97
98public:
99 // vftables
100 // NOLINTBEGIN
101 MCNAPI static void** $vftable();
102 // NOLINTEND
103};
Definition AABB.h:18
Definition Actor.h:102
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:17
Definition BlockSource.h:66
Definition BlockType.h:84
Definition Block.h:37
Definition Experiments.h:14
Definition LanternBlock.h:20
static MCAPI void ** $vftable()
Definition Vec3.h:10