LeviLamina
Loading...
Searching...
No Matches
CoralFan.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/FoliageBlock.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; }
20// clang-format on
21
22class CoralFan : public ::FoliageBlock {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 48, ::HashedString const> mDeadVersion;
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 CoralFan();
32
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 virtual bool isValidAuxValue(int auxValue) const /*override*/;
37
38 virtual ::AABB getCollisionShape(
39 ::Block const&,
41 ::BlockPos const&,
43 ) const /*override*/;
44
45 virtual bool mayConsumeFertilizer(::BlockSource&) const /*override*/;
46
47 virtual bool isLavaBlocking() const /*override*/;
48
49 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
50 /*override*/;
51
52 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
53 /*override*/;
54
55 virtual bool mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
56
57 virtual void checkAlive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
63 MCAPI CoralFan(::std::string const& nameId, int id, ::HashedString const& deadVersion);
64
65 MCFOLD ::HashedString const& getDeadVersion() const;
66
67 MCAPI void onPlaceBase(::BlockEvents::BlockPlaceEvent& eventData) const;
68 // NOLINTEND
69
70public:
71 // constructor thunks
72 // NOLINTBEGIN
73 MCAPI void* $ctor(::std::string const& nameId, int id, ::HashedString const& deadVersion);
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
79 MCFOLD bool $isValidAuxValue(int auxValue) const;
80
81 MCFOLD ::AABB $getCollisionShape(
82 ::Block const&,
84 ::BlockPos const&,
86 ) const;
87
88 MCFOLD bool $mayConsumeFertilizer(::BlockSource&) const;
89
90 MCFOLD bool $isLavaBlocking() const;
91
92 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
93
94 MCFOLD bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
95
96 MCFOLD bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
97
98 MCAPI void $checkAlive(::BlockSource& region, ::BlockPos const& pos) const;
99
100
101 // NOLINTEND
102
103public:
104 // vftables
105 // NOLINTBEGIN
106 MCAPI static void** $vftable();
107 // NOLINTEND
108};
Definition AABB.h:18
Definition Actor.h:125
Definition BlockPlaceEvent.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