LeviLamina
Loading...
Searching...
No Matches
PathBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/optional_ref.h"
7#include "mc/world/level/block/BlockSupportType.h"
8#include "mc/world/level/block/BlockType.h"
9
10// auto generated forward declare list
11// clang-format off
12class AABB;
13class Actor;
14class Block;
15class BlockPos;
16class BlockSource;
17class Experiments;
19class HashedString;
21class ItemStack;
22namespace BlockEvents { class BlockPlayerInteractEvent; }
23namespace BlockEvents { class BlockQueuedTickEvent; }
24// clang-format on
25
26class PathBlock : public ::BlockType {
27public:
28 // member variables
29 // NOLINTBEGIN
30 ::ll::TypedStorage<8, 8, ::HashedString const&> mBlockToTillInto;
31 ::ll::TypedStorage<8, 8, ::HashedString const&> mBaseBlock;
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 PathBlock& operator=(PathBlock const&);
37 PathBlock(PathBlock const&);
38 PathBlock();
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 virtual ::AABB getCollisionShape(
44 ::Block const&,
46 ::BlockPos const& pos,
48 ) const /*override*/;
49
50 virtual ::AABB const&
51 getOutline(::Block const&, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const
52 /*override*/;
53
54 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
55 /*override*/;
56
57 virtual bool canBeOriginalSurface(bool) const /*override*/;
58
59 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
60
61 virtual bool tryToTill(::BlockSource& region, ::BlockPos const& pos, ::Actor& entity, ::ItemStack& item) const
62 /*override*/;
63
64 virtual bool canProvideSupport(::Block const&, uchar face, ::BlockSupportType) const /*override*/;
65
66 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
67
68 virtual ~PathBlock() /*override*/ = default;
69 // NOLINTEND
70
71public:
72 // member functions
73 // NOLINTBEGIN
74 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
75
76 MCFOLD void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
77 // NOLINTEND
78
79public:
80 // static variables
81 // NOLINTBEGIN
82 MCAPI static ::AABB& BLOCK_AABB();
83 // NOLINTEND
84
85public:
86 // virtual function thunks
87 // NOLINTBEGIN
88 MCAPI ::AABB $getCollisionShape(
89 ::Block const&,
91 ::BlockPos const& pos,
93 ) const;
94
95 MCAPI ::AABB const&
96 $getOutline(::Block const&, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const;
97
98 MCFOLD void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
99
100 MCFOLD bool $canBeOriginalSurface(bool) const;
101
102 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
103
104 MCFOLD bool $tryToTill(::BlockSource& region, ::BlockPos const& pos, ::Actor& entity, ::ItemStack& item) const;
105
106 MCFOLD bool $canProvideSupport(::Block const&, uchar face, ::BlockSupportType) const;
107
108 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
109
110
111 // NOLINTEND
112
113public:
114 // vftables
115 // NOLINTBEGIN
116 MCNAPI static void** $vftable();
117 // NOLINTEND
118};
Definition AABB.h:18
Definition Actor.h:106
Definition BlockPlayerInteractEvent.h:17
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:19
Definition BlockSource.h:71
Definition Block.h:43
Definition Experiments.h:14
Definition GetCollisionShapeInterface.h:13
Definition HashedString.h:5
Definition IConstBlockSource.h:25
Definition ItemStack.h:26
static MCAPI void ** $vftable()
Definition optional_ref.h:10