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 Experiments;
16class Vec3;
17namespace BlockEvents { class BlockQueuedTickEvent; }
18// clang-format on
19
20class LadderBlock : public ::BlockType {
21public:
22 // virtual functions
23 // NOLINTBEGIN
24 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB& bufferAABB) const /*override*/;
25
26 virtual bool
27 getLiquidClipVolume(::Block const& block, ::BlockSource& region, ::BlockPos const& pos, ::AABB& includeBox) const
28 /*override*/;
29
30 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const /*override*/;
31
32 virtual ::Block const&
33 getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue) const
34 /*override*/;
35
36 virtual ::Block const& sanitizeFillBlock(::Block const& block) const /*override*/;
37
38 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
39
40 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
41 /*override*/;
42
43 virtual bool isLavaBlocking() const /*override*/;
44
45 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
46
47 virtual ~LadderBlock() /*override*/ = default;
48 // NOLINTEND
49
50public:
51 // member functions
52 // NOLINTBEGIN
53 MCFOLD void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
54 // NOLINTEND
55
56public:
57 // virtual function thunks
58 // NOLINTBEGIN
59 MCAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB& bufferAABB) const;
60
61 MCFOLD bool
62 $getLiquidClipVolume(::Block const& block, ::BlockSource& region, ::BlockPos const& pos, ::AABB& includeBox) 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 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
83
84
85 // NOLINTEND
86
87public:
88 // vftables
89 // NOLINTBEGIN
90 MCAPI static void** $vftable();
91 // NOLINTEND
92};
Definition AABB.h:18
Definition Actor.h:105
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:19
Definition BlockSource.h:68
Definition Block.h:43
Definition Experiments.h:14
Definition LadderBlock.h:20
Definition Vec3.h:10