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