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/BlockDescriptor.h"
8#include "mc/world/level/block/BlockSupportType.h"
9#include "mc/world/level/block/BlockType.h"
10
11// auto generated forward declare list
12// clang-format off
13class AABB;
14class Actor;
15class Block;
16class BlockPos;
17class BlockSource;
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, 176, ::BlockDescriptor const> mBlockToTillInto;
30 ::ll::TypedStorage<8, 176, ::BlockDescriptor const> mBaseBlock;
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
35 PathBlock();
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 virtual ::AABB getCollisionShape(
41 ::Block const&,
43 ::BlockPos const& pos,
45 ) const /*override*/;
46
47 virtual ::AABB const&
48 getOutline(::Block const&, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const
49 /*override*/;
50
51 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
52 /*override*/;
53
54 virtual bool canBeOriginalSurface(bool) const /*override*/;
55
56 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
57
58 virtual bool tryToTill(::BlockSource& region, ::BlockPos const& pos, ::Actor& entity, ::ItemStack& item) const
59 /*override*/;
60
61 virtual bool canProvideSupport(::Block const&, uchar face, ::BlockSupportType) const /*override*/;
62 // NOLINTEND
63
64public:
65 // member functions
66 // NOLINTBEGIN
67 MCAPI
68 PathBlock(::std::string const& nameId, int id, ::BlockDescriptor blockToTillInto, ::BlockDescriptor baseBlock);
69
70 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
71
72 MCFOLD void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
73 // NOLINTEND
74
75public:
76 // static variables
77 // NOLINTBEGIN
78 MCAPI static ::AABB& BLOCK_AABB();
79 // NOLINTEND
80
81public:
82 // constructor thunks
83 // NOLINTBEGIN
84 MCAPI void*
85 $ctor(::std::string const& nameId, int id, ::BlockDescriptor blockToTillInto, ::BlockDescriptor baseBlock);
86 // NOLINTEND
87
88public:
89 // virtual function thunks
90 // NOLINTBEGIN
91 MCAPI ::AABB $getCollisionShape(
92 ::Block const&,
94 ::BlockPos const& pos,
96 ) const;
97
98 MCAPI ::AABB const&
99 $getOutline(::Block const&, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const;
100
101 MCFOLD void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
102
103 MCFOLD bool $canBeOriginalSurface(bool) const;
104
105 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
106
107 MCFOLD bool $tryToTill(::BlockSource& region, ::BlockPos const& pos, ::Actor& entity, ::ItemStack& item) const;
108
109 MCFOLD bool $canProvideSupport(::Block const&, uchar face, ::BlockSupportType) const;
110
111
112 // NOLINTEND
113
114public:
115 // vftables
116 // NOLINTBEGIN
117 MCNAPI static void** $vftable();
118 // NOLINTEND
119};
Definition AABB.h:18
Definition Actor.h:113
Definition BlockDescriptor.h:21
Definition BlockPlayerInteractEvent.h:18
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:17
Definition BlockSource.h:71
Definition Block.h:41
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
Definition ItemStack.h:26
static MCAPI void ** $vftable()
Definition optional_ref.h:10