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 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB& bufferAABB) const /*override*/;
25
26 virtual ::Block const&
27 getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue) const
28 /*override*/;
29
30 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
31 /*override*/;
32
33 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
34
35 virtual void movedByPiston(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
36
37 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
38
39 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
40 /*override*/;
41
42 virtual void _addHardCodedBlockComponents(::Experiments const& experiments) /*override*/;
43
44 virtual ~LanternBlock() /*override*/;
45 // NOLINTEND
46
47public:
48 // member functions
49 // NOLINTBEGIN
50 MCFOLD void _checkToQueueTick(::BlockSource& region, ::BlockPos const& pos) const;
51
52 MCAPI bool _couldHang(::BlockSource& region, ::BlockPos const& pos) const;
53
54 MCFOLD void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
55 // NOLINTEND
56
57public:
58 // destructor thunk
59 // NOLINTBEGIN
60 MCFOLD void $dtor();
61 // NOLINTEND
62
63public:
64 // virtual function thunks
65 // NOLINTBEGIN
66 MCAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB& bufferAABB) const;
67
68 MCAPI ::Block const& $getPlacementBlock(
69 ::Actor const& by,
70 ::BlockPos const& pos,
71 uchar face,
72 ::Vec3 const& clickPos,
73 int itemValue
74 ) const;
75
76 MCFOLD void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
77
78 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
79
80 MCFOLD void $movedByPiston(::BlockSource& region, ::BlockPos const& pos) const;
81
82 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
83
84 MCAPI bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
85
86 MCAPI void $_addHardCodedBlockComponents(::Experiments const& experiments);
87
88
89 // NOLINTEND
90
91public:
92 // vftables
93 // NOLINTBEGIN
94 MCAPI static void** $vftable();
95 // NOLINTEND
96};
Definition AABB.h:18
Definition Actor.h:106
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:19
Definition BlockSource.h:71
Definition Block.h:43
Definition Experiments.h:14
Definition LanternBlock.h:20
Definition Vec3.h:10