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