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&, ::BlockPos const& pos, ::AABB& bufferValue) 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 // constructor thunks
66 // NOLINTBEGIN
67 MCAPI void* $ctor(
68 ::std::string const& nameId,
69 int id,
70 ::HashedString const& coralFanVersion,
71 ::HashedString const& deadVersion
72 );
73 // NOLINTEND
74
75public:
76 // virtual function thunks
77 // NOLINTBEGIN
78 MCAPI ::ItemInstance $asItemInstance(::Block const&, ::BlockActor const*) const;
79
80 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
81
82 MCAPI ::AABB const&
83 $getOutline(::Block const& block, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const;
84
85 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
86
87 MCAPI void $checkAlive(::BlockSource& region, ::BlockPos const& pos) const;
88
89 MCFOLD bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
90
91
92 // NOLINTEND
93
94public:
95 // vftables
96 // NOLINTBEGIN
97 MCAPI static void** $vftable();
98 // NOLINTEND
99};
Definition AABB.h:18
Definition BlockActor.h:29
Definition BlockPlaceEvent.h:16
Definition BlockPos.h:17
Definition BlockSource.h:71
Definition Block.h:41
Definition HashedString.h:5
Definition IConstBlockSource.h:25
Definition ItemInstance.h:15