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/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;
20namespace BlockEvents { class BlockPlaceEvent; }
21namespace BlockEvents { class BlockQueuedTickEvent; }
22// clang-format on
23
24class CoralPlantBlock : public ::BlockType {
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<8, 48, ::HashedString const> mDeadVersion;
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 CoralPlantBlock();
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual ::AABB getCollisionShape(
39 ::Block const&,
41 ::BlockPos const&,
43 ) const /*override*/;
44
45 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
46
47 virtual bool mayConsumeFertilizer(::BlockSource& region) const /*override*/;
48
49 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
50 /*override*/;
51
52 virtual bool isLavaBlocking() const /*override*/;
53
54 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
55 /*override*/;
56
57 virtual bool mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
58
59 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
60
61 virtual ~CoralPlantBlock() /*override*/ = default;
62 // NOLINTEND
63
64public:
65 // member functions
66 // NOLINTBEGIN
67 MCAPI CoralPlantBlock(::std::string const& nameId, int id, ::HashedString const& deadVersion);
68
69 MCAPI void checkAlive(::BlockSource& region, ::BlockPos const& pos) const;
70
71 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
72
73 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
74 // NOLINTEND
75
76public:
77 // constructor thunks
78 // NOLINTBEGIN
79 MCAPI void* $ctor(::std::string const& nameId, int id, ::HashedString const& deadVersion);
80 // NOLINTEND
81
82public:
83 // virtual function thunks
84 // NOLINTBEGIN
85 MCFOLD ::AABB $getCollisionShape(
86 ::Block const&,
88 ::BlockPos const&,
90 ) const;
91
92 MCFOLD bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
93
94 MCFOLD bool $mayConsumeFertilizer(::BlockSource& region) const;
95
96 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
97
98 MCFOLD bool $isLavaBlocking() const;
99
100 MCFOLD bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
101
102 MCAPI bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
103
104 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
105
106
107 // NOLINTEND
108
109public:
110 // vftables
111 // NOLINTBEGIN
112 MCAPI static void** $vftable();
113 // NOLINTEND
114};
Definition AABB.h:18
Definition Actor.h:105
Definition BlockPlaceEvent.h:16
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:19
Definition BlockSource.h:68
Definition Block.h:43
Definition Experiments.h:14
Definition GetCollisionShapeInterface.h:13
Definition HashedString.h:5
Definition IConstBlockSource.h:25
Definition optional_ref.h:10