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