LeviLamina
Loading...
Searching...
No Matches
CoralPlantBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/string/HashedString.h"
7#include "mc/deps/core/utility/optional_ref.h"
8#include "mc/world/level/block/BlockLegacy.h"
9
10// auto generated forward declare list
11// clang-format off
12class AABB;
13class Actor;
14class Block;
15class BlockPos;
16class BlockSource;
17class Experiments;
20namespace BlockEvents { class BlockPlaceEvent; }
21namespace BlockEvents { class BlockQueuedTickEvent; }
22// clang-format on
23
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<8, 48, ::HashedString const> mDeadVersion;
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 // vIndex: 5
39 virtual ::AABB getCollisionShape(
40 ::Block const&,
42 ::BlockPos const&,
44 ) const /*override*/;
45
46 // vIndex: 138
47 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
48
49 // vIndex: 74
50 virtual bool mayConsumeFertilizer(::BlockSource& region) const /*override*/;
51
52 // vIndex: 86
53 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
54 /*override*/;
55
56 // vIndex: 30
57 virtual bool isLavaBlocking() const /*override*/;
58
59 // vIndex: 56
60 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
61 /*override*/;
62
63 // vIndex: 80
64 virtual bool mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
65
66 // vIndex: 130
67 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
68
69 // vIndex: 0
70 virtual ~CoralPlantBlock() /*override*/ = default;
71 // NOLINTEND
72
73public:
74 // member functions
75 // NOLINTBEGIN
76 MCAPI CoralPlantBlock(::std::string const& nameId, int id, ::HashedString const& deadVersion);
77
78 MCAPI void checkAlive(::BlockSource& region, ::BlockPos const& pos) const;
79
80 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
81
82 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
83 // NOLINTEND
84
85public:
86 // constructor thunks
87 // NOLINTBEGIN
88 MCAPI void* $ctor(::std::string const& nameId, int id, ::HashedString const& deadVersion);
89 // NOLINTEND
90
91public:
92 // virtual function thunks
93 // NOLINTBEGIN
94 MCFOLD ::AABB $getCollisionShape(
95 ::Block const&,
97 ::BlockPos const&,
99 ) const;
100
101 MCFOLD bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
102
103 MCFOLD bool $mayConsumeFertilizer(::BlockSource& region) const;
104
105 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
106
107 MCFOLD bool $isLavaBlocking() const;
108
109 MCFOLD bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
110
111 MCAPI bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
112
113 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
114 // NOLINTEND
115
116public:
117 // vftables
118 // NOLINTBEGIN
119 MCNAPI static void** $vftable();
120 // NOLINTEND
121};
Definition AABB.h:18
Definition Actor.h:103
Definition BlockPlaceEvent.h:16
Definition BlockQueuedTickEvent.h:16
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:38
Definition CoralPlantBlock.h:24
static MCAPI void ** $vftable()
Definition Experiments.h:14
Definition GetCollisionShapeInterface.h:13
Definition HashedString.h:5
Definition IConstBlockSource.h:24
Definition optional_ref.h:10