LeviLamina
Loading...
Searching...
No Matches
CarpetBlock.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/BlockLegacy.h"
8
9// auto generated forward declare list
10// clang-format off
11class AABB;
12class Actor;
13class Block;
14class BlockActor;
15class BlockPos;
16class BlockSource;
17class Container;
18class Experiments;
21class ItemInstance;
22class Vec3;
23namespace BlockEvents { class BlockQueuedTickEvent; }
24// clang-format on
25
26class CarpetBlock : public ::BlockLegacy {
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 // vIndex: 11
31 virtual ::AABB const& getVisualShape(::Block const&, ::AABB& bufferAABB) const /*override*/;
32
33 // vIndex: 5
34 virtual ::AABB getCollisionShape(
35 ::Block const& block,
36 ::IConstBlockSource const& region,
37 ::BlockPos const& pos,
39 ) const /*override*/;
40
41 // vIndex: 79
42 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
43
44 // vIndex: 87
45 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
46 /*override*/;
47
48 // vIndex: 142
49 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
50
51 // vIndex: 57
52 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
53 /*override*/;
54
55 // vIndex: 90
56 virtual ::ItemInstance asItemInstance(::Block const& block, ::BlockActor const*) const /*override*/;
57
58 // vIndex: 59
59 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const
60 /*override*/;
61
62 // vIndex: 131
63 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
64
65 // vIndex: 0
66 virtual ~CarpetBlock() /*override*/ = default;
67 // NOLINTEND
68
69public:
70 // member functions
71 // NOLINTBEGIN
72 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
73 // NOLINTEND
74
75public:
76 // destructor thunk
77 // NOLINTBEGIN
78
79 // NOLINTEND
80
81public:
82 // virtual function thunks
83 // NOLINTBEGIN
84 MCAPI ::AABB const& $getVisualShape(::Block const&, ::AABB& bufferAABB) const;
85
86 MCAPI ::AABB $getCollisionShape(
87 ::Block const& block,
88 ::IConstBlockSource const& region,
89 ::BlockPos const& pos,
91 ) const;
92
93 MCFOLD bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
94
95 MCFOLD void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
96
97 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
98
99 MCFOLD bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
100
101 MCFOLD ::ItemInstance $asItemInstance(::Block const& block, ::BlockActor const*) const;
102
103 MCAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const;
104
105 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
106 // NOLINTEND
107
108public:
109 // vftables
110 // NOLINTBEGIN
111 MCAPI static void** $vftable();
112 // NOLINTEND
113};
Definition AABB.h:16
Definition Actor.h:104
Definition BlockActor.h:32
Definition BlockQueuedTickEvent.h:15
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition CarpetBlock.h:26
Definition Container.h:30
Definition Experiments.h:14
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition ItemInstance.h:16
Definition Vec3.h:10
Definition optional_ref.h:10