LeviLamina
Loading...
Searching...
No Matches
DirtPathBlock.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;
20class ItemStack;
21namespace BlockEvents { class BlockPlayerInteractEvent; }
22namespace BlockEvents { class BlockQueuedTickEvent; }
23// clang-format on
24
25class DirtPathBlock : public ::BlockType {
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 virtual ::AABB getCollisionShape(
30 ::Block const&,
32 ::BlockPos const& pos,
34 ) const /*override*/;
35
36 virtual ::AABB const&
37 getOutline(::Block const&, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const
38 /*override*/;
39
40 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
41 /*override*/;
42
43 virtual bool canBeOriginalSurface(bool) const /*override*/;
44
45 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
46
47 virtual bool tryToTill(::BlockSource& region, ::BlockPos const& pos, ::Actor& entity, ::ItemStack& item) const
48 /*override*/;
49
50 virtual bool canProvideSupport(::Block const&, uchar face, ::BlockSupportType) const /*override*/;
51
52 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
53
54 virtual ~DirtPathBlock() /*override*/ = default;
55 // NOLINTEND
56
57public:
58 // member functions
59 // NOLINTBEGIN
60 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
61
62 MCFOLD void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
63 // NOLINTEND
64
65public:
66 // static variables
67 // NOLINTBEGIN
68 MCAPI static ::AABB& BLOCK_AABB();
69 // NOLINTEND
70
71public:
72 // virtual function thunks
73 // NOLINTBEGIN
74 MCAPI ::AABB $getCollisionShape(
75 ::Block const&,
77 ::BlockPos const& pos,
79 ) const;
80
81 MCAPI ::AABB const&
82 $getOutline(::Block const&, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const;
83
84 MCFOLD void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
85
86 MCFOLD bool $canBeOriginalSurface(bool) const;
87
88 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
89
90 MCAPI bool $tryToTill(::BlockSource& region, ::BlockPos const& pos, ::Actor& entity, ::ItemStack& item) const;
91
92 MCFOLD bool $canProvideSupport(::Block const&, uchar face, ::BlockSupportType) const;
93
94 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
95
96
97 // NOLINTEND
98
99public:
100 // vftables
101 // NOLINTBEGIN
102 MCAPI static void** $vftable();
103 // NOLINTEND
104};
Definition AABB.h:18
Definition Actor.h:105
Definition BlockPlayerInteractEvent.h:17
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:19
Definition BlockSource.h:68
Definition Block.h:43
Definition DirtPathBlock.h:25
Definition Experiments.h:14
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
Definition ItemStack.h:26
Definition optional_ref.h:10