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;
18class HashedString;
20class ItemStack;
21namespace BlockEvents { class BlockPlayerInteractEvent; }
22namespace BlockEvents { class BlockQueuedTickEvent; }
23// clang-format on
24
25class PathBlock : public ::BlockType {
26public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<8, 8, ::HashedString const&> mBlockToTillInto;
30 ::ll::TypedStorage<8, 8, ::HashedString const&> mBaseBlock;
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
35 PathBlock& operator=(PathBlock const&);
36 PathBlock(PathBlock const&);
37 PathBlock();
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 virtual ::AABB getCollisionShape(
43 ::Block const& pos,
45 ::BlockPos const&,
47 ) const /*override*/;
48
49 virtual ::AABB const&
50 getOutline(::Block const& pos, ::IConstBlockSource const& bufferValue, ::BlockPos const&, ::AABB&) const
51 /*override*/;
52
53 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
54 /*override*/;
55
56 virtual bool canBeOriginalSurface(bool) const /*override*/;
57
58 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
59
60 virtual bool tryToTill(::BlockSource& region, ::BlockPos const& pos, ::Actor& entity, ::ItemStack& item) const
61 /*override*/;
62
63 virtual bool canProvideSupport(::Block const& face, uchar, ::BlockSupportType) const /*override*/;
64 // NOLINTEND
65
66public:
67 // member functions
68 // NOLINTBEGIN
69 MCAPI PathBlock(
70 ::std::string const& nameId,
71 int id,
72 ::HashedString const& blockToTillInto,
73 ::HashedString const& baseBlock
74 );
75
76 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
77
78 MCFOLD void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
79 // NOLINTEND
80
81public:
82 // static variables
83 // NOLINTBEGIN
84 MCAPI static ::AABB& BLOCK_AABB();
85 // NOLINTEND
86
87public:
88 // constructor thunks
89 // NOLINTBEGIN
90 MCAPI void*
91 $ctor(::std::string const& nameId, int id, ::HashedString const& blockToTillInto, ::HashedString const& baseBlock);
92 // NOLINTEND
93
94public:
95 // virtual function thunks
96 // NOLINTBEGIN
97 MCAPI ::AABB $getCollisionShape(
98 ::Block const& pos,
100 ::BlockPos const&,
102 ) const;
103
104 MCAPI ::AABB const&
105 $getOutline(::Block const& pos, ::IConstBlockSource const& bufferValue, ::BlockPos const&, ::AABB&) const;
106
107 MCFOLD void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
108
109 MCFOLD bool $canBeOriginalSurface(bool) const;
110
111 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
112
113 MCFOLD bool $tryToTill(::BlockSource& region, ::BlockPos const& pos, ::Actor& entity, ::ItemStack& item) const;
114
115 MCFOLD bool $canProvideSupport(::Block const& face, uchar, ::BlockSupportType) const;
116
117
118 // NOLINTEND
119
120public:
121 // vftables
122 // NOLINTBEGIN
123 MCNAPI static void** $vftable();
124 // NOLINTEND
125};
Definition AABB.h:18
Definition Actor.h:125
Definition BlockPlayerInteractEvent.h:20
Definition BlockQueuedTickEvent.h:18
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition GetCollisionShapeInterface.h:13
Definition HashedString.h:5
Definition IConstBlockSource.h:24
Definition ItemStack.h:35
static MCAPI void ** $vftable()
Definition optional_ref.h:10