LeviLamina
Loading...
Searching...
No Matches
CoralBlock.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/BlockType.h"
8
9// auto generated forward declare list
10// clang-format off
11class BlockPos;
12class BlockSource;
13namespace BlockEvents { class BlockPlaceEvent; }
14namespace BlockEvents { class BlockQueuedTickEvent; }
15// clang-format on
16
17class CoralBlock : public ::BlockType {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 48, ::HashedString const> mDeadVersion;
22 // NOLINTEND
23
24public:
25 // prevent constructor by default
26 CoralBlock();
27
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
32 /*override*/;
33
34 virtual bool mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
35 // NOLINTEND
36
37public:
38 // member functions
39 // NOLINTBEGIN
40 MCAPI CoralBlock(::std::string const& nameId, int id, ::HashedString const& deadVersion);
41
42 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
43
44 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
45 // NOLINTEND
46
47public:
48 // constructor thunks
49 // NOLINTBEGIN
50 MCAPI void* $ctor(::std::string const& nameId, int id, ::HashedString const& deadVersion);
51 // NOLINTEND
52
53public:
54 // virtual function thunks
55 // NOLINTBEGIN
56 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
57
58 MCFOLD bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
59
60
61 // NOLINTEND
62
63public:
64 // vftables
65 // NOLINTBEGIN
66 MCAPI static void** $vftable();
67 // NOLINTEND
68};
Definition BlockPlaceEvent.h:18
Definition BlockQueuedTickEvent.h:18
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition HashedString.h:5