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