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&) 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 checkAlive(::BlockSource& region, ::BlockPos const& pos) const;
65
66 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
67
68 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
69 // NOLINTEND
70
71public:
72 // constructor thunks
73 // NOLINTBEGIN
74 MCAPI void* $ctor(::std::string const& nameId, int id, ::HashedString const& deadVersion);
75 // NOLINTEND
76
77public:
78 // virtual function thunks
79 // NOLINTBEGIN
80 MCFOLD ::AABB $getCollisionShape(
81 ::Block const&,
83 ::BlockPos const&,
85 ) const;
86
87 MCFOLD bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
88
89 MCFOLD bool $mayConsumeFertilizer(::BlockSource&) const;
90
91 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
92
93 MCFOLD bool $isLavaBlocking() const;
94
95 MCFOLD bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
96
97 MCAPI bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
98
99
100 // NOLINTEND
101
102public:
103 // vftables
104 // NOLINTBEGIN
105 MCAPI static void** $vftable();
106 // NOLINTEND
107};
Definition AABB.h:18
Definition Actor.h:125
Definition BlockPlaceEvent.h:18
Definition BlockQueuedTickEvent.h:18
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition GetCollisionShapeInterface.h:13
Definition HashedString.h:5
Definition IConstBlockSource.h:24
Definition optional_ref.h:10