Skip to content
LeviMC
English
AutoLightDark
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 MCNAPI CoralPlantBlock(::std::string const& nameId, int id, ::HashedString const& deadVersion);
63
64 MCNAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
65
66 MCNAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
67 // NOLINTEND
68
69public:
70 // constructor thunks
71 // NOLINTBEGIN
72 MCNAPI void* $ctor(::std::string const& nameId, int id, ::HashedString const& deadVersion);
73 // NOLINTEND
74
75public:
76 // virtual function thunks
77 // NOLINTBEGIN
78 MCNAPI ::AABB $getCollisionShape(
79 ::Block const&,
81 ::BlockPos const&,
83 ) const;
84
85 MCNAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
86
87 MCNAPI bool $mayConsumeFertilizer(::BlockSource& region) const;
88
89 MCNAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
90
91 MCNAPI bool $isLavaBlocking() const;
92
93 MCNAPI bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
94
95 MCNAPI bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
96
97
98 // NOLINTEND
99};
Definition AABB.h:18
Definition Actor.h:116
Definition BlockPlaceEvent.h:16
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
MCAPI void tick(::BlockEvents::BlockQueuedTickEvent &eventData) const
MCAPI bool $canSurvive(::BlockSource &region, ::BlockPos const &pos) const
MCAPI bool $isLavaBlocking() const
MCAPI bool $mayConsumeFertilizer(::BlockSource &region) const
MCAPI bool $checkIsPathable(::Actor &entity, ::BlockPos const &lastPathPos, ::BlockPos const &pathPos) const
MCAPI CoralPlantBlock(::std::string const &nameId, int id, ::HashedString const &deadVersion)
MCAPI void $neighborChanged(::BlockSource &region, ::BlockPos const &pos, ::BlockPos const &neighborPos) const
MCAPI::AABB $getCollisionShape(::Block const &, ::IConstBlockSource const &, ::BlockPos const &, ::optional_ref<::GetCollisionShapeInterface const >) const
MCAPI void onPlace(::BlockEvents::BlockPlaceEvent &eventData) const
MCAPI bool $mayPlaceOn(::BlockSource &region, ::BlockPos const &pos) const
MCAPI void * $ctor(::std::string const &nameId, int id, ::HashedString const &deadVersion)
Definition GetCollisionShapeInterface.h:13
Definition HashedString.h:5
Definition IConstBlockSource.h:25
Definition optional_ref.h:10