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
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 // virtual functions
31 // NOLINTBEGIN
32 virtual ::BlockType& init() /*override*/;
33
34 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
35
36 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar facing) const /*override*/;
37
38 virtual bool mayPlace(::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 canProvideSupport(::Block const& block, uchar face, ::BlockSupportType type) const /*override*/;
44
45 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB& bufferAABB) const /*override*/;
46
47 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
48 /*override*/;
49
50 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
51
52 virtual ~AmethystClusterBlock() /*override*/ = default;
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
58 MCAPI ::AABB _shapeFromDirection(int facing) const;
59
60 MCFOLD void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
61 // NOLINTEND
62
63public:
64 // virtual function thunks
65 // NOLINTBEGIN
66 MCAPI ::BlockType& $init();
67
68 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
69
70 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar facing) const;
71
72 MCFOLD bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
73
74 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
75
76 MCFOLD bool $canProvideSupport(::Block const& block, uchar face, ::BlockSupportType type) const;
77
78 MCAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB& bufferAABB) const;
79
80 MCFOLD bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) 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 AmethystBlock.h:15
Definition AmethystClusterBlock.h:21
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:19
Definition BlockSource.h:68
Definition BlockType.h:84
Definition Block.h:43
Definition Experiments.h:14