LeviLamina
Loading...
Searching...
No Matches
CoralFanHang.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/world/level/block/CoralFan.h"
8
9// auto generated forward declare list
10// clang-format off
11class AABB;
12class Block;
13class BlockActor;
14class BlockPos;
15class BlockSource;
17class ItemInstance;
18namespace BlockEvents { class BlockPlaceEvent; }
19// clang-format on
20
21class CoralFanHang : public ::CoralFan {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 48, ::HashedString const> mCoralFanVersion;
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 CoralFanHang();
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual ::ItemInstance asItemInstance(::Block const&, ::BlockActor const*) const /*override*/;
36
37 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
38 /*override*/;
39
40 virtual ::AABB const&
41 getOutline(::Block const& block, ::IConstBlockSource const& pos, ::BlockPos const& bufferValue, ::AABB&) const
42 /*override*/;
43
44 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
45
46 virtual void checkAlive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
47
48 virtual bool mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
49 // NOLINTEND
50
51public:
52 // member functions
53 // NOLINTBEGIN
54 MCAPI CoralFanHang(
55 ::std::string const& nameId,
56 int id,
57 ::HashedString const& coralFanVersion,
58 ::HashedString const& deadVersion
59 );
60
61 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
62 // NOLINTEND
63
64public:
65 // static functions
66 // NOLINTBEGIN
67 MCAPI static bool hasSupport(::Block const& supportingBlock, uchar face);
68 // NOLINTEND
69
70public:
71 // constructor thunks
72 // NOLINTBEGIN
73 MCAPI void* $ctor(
74 ::std::string const& nameId,
75 int id,
76 ::HashedString const& coralFanVersion,
77 ::HashedString const& deadVersion
78 );
79 // NOLINTEND
80
81public:
82 // virtual function thunks
83 // NOLINTBEGIN
84 MCAPI ::ItemInstance $asItemInstance(::Block const&, ::BlockActor const*) const;
85
86 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
87
88 MCAPI ::AABB const&
89 $getOutline(::Block const& block, ::IConstBlockSource const& pos, ::BlockPos const& bufferValue, ::AABB&) const;
90
91 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
92
93 MCAPI void $checkAlive(::BlockSource& region, ::BlockPos const& pos) const;
94
95 MCFOLD bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
96
97
98 // NOLINTEND
99
100public:
101 // vftables
102 // NOLINTBEGIN
103 MCAPI static void** $vftable();
104 // NOLINTEND
105};
Definition AABB.h:18
Definition BlockActor.h:30
Definition BlockPlaceEvent.h:18
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition HashedString.h:5
Definition IConstBlockSource.h:24
Definition ItemInstance.h:15