LeviLamina
Loading...
Searching...
No Matches
AmethystClusterBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/AmethystBlock.h"
7#include "mc/world/level/block/BlockSupportType.h"
8
9// auto generated forward declare list
10// clang-format off
11class AABB;
12class Actor;
13class Block;
14class BlockPos;
15class BlockSource;
16class BlockType;
17class Experiments;
18namespace BlockEvents { class BlockQueuedTickEvent; }
19// clang-format on
20
21class AmethystClusterBlock : public ::AmethystBlock {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<4, 4, int> mHeight;
26 ::ll::TypedStorage<4, 4, int> mAabbOffset;
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 AmethystClusterBlock();
32
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 virtual ::BlockType& init() /*override*/;
37
38 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
39
40 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar facing) const /*override*/;
41
42 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
43
44 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
45 /*override*/;
46
47 virtual bool canProvideSupport(::Block const&, uchar, ::BlockSupportType) const /*override*/;
48
49 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB& bufferAABB) const /*override*/;
50
51 virtual bool checkIsPathable(::Actor&, ::BlockPos const&, ::BlockPos const&) const /*override*/;
52
53 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
54 // NOLINTEND
55
56public:
57 // member functions
58 // NOLINTBEGIN
59 MCAPI AmethystClusterBlock(::std::string const& nameId, int id, int height, int aabbOffset);
60
61 MCAPI ::AABB const& _getShape(::Block const& block, ::AABB& bufferAABB) const;
62
63 MCAPI ::AABB _shapeFromDirection(int facing) const;
64
65 MCFOLD void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
66 // NOLINTEND
67
68public:
69 // constructor thunks
70 // NOLINTBEGIN
71 MCAPI void* $ctor(::std::string const& nameId, int id, int height, int aabbOffset);
72 // NOLINTEND
73
74public:
75 // virtual function thunks
76 // NOLINTBEGIN
77 MCAPI ::BlockType& $init();
78
79 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
80
81 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar facing) const;
82
83 MCFOLD bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
84
85 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
86
87 MCFOLD bool $canProvideSupport(::Block const&, uchar, ::BlockSupportType) const;
88
89 MCAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB& bufferAABB) const;
90
91 MCFOLD bool $checkIsPathable(::Actor&, ::BlockPos const&, ::BlockPos const&) const;
92
93 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
94
95
96 // NOLINTEND
97
98public:
99 // vftables
100 // NOLINTBEGIN
101 MCAPI static void** $vftable();
102 // NOLINTEND
103};
Definition AABB.h:18
Definition Actor.h:125
Definition BlockQueuedTickEvent.h:18
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition BlockType.h:84
Definition Block.h:69
Definition Experiments.h:14