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