LeviLamina
Loading...
Searching...
No Matches
CustomBlockStateVariant.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/util/BidirectionalUnorderedMap.h"
7#include "mc/world/level/block/states/BlockState.h"
8
9// auto generated forward declare list
10// clang-format off
11class CompoundTag;
12class ListTag;
13// clang-format on
14
15class CustomBlockStateVariant : public ::BlockState {
16public:
17 // member variables
18 // NOLINTBEGIN
19 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ListTag>> mEnumValues;
20 ::ll::TypedStorage<8, 128, ::BidirectionalUnorderedMap<int, uint64>> mHashIndexMap;
21 // NOLINTEND
22
23public:
24 // prevent constructor by default
25 CustomBlockStateVariant();
26
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 virtual void toNBT(::CompoundTag& tag, int val) const /*override*/;
31
32 virtual bool fromNBT(::CompoundTag const& tag, int& outValue) const /*override*/;
33
34 virtual ~CustomBlockStateVariant() /*override*/ = default;
35 // NOLINTEND
36
37public:
38 // member functions
39 // NOLINTBEGIN
40 MCAPI CustomBlockStateVariant(uint64 id, ::std::string const& name, ::ListTag const& values);
41 // NOLINTEND
42
43public:
44 // constructor thunks
45 // NOLINTBEGIN
46 MCAPI void* $ctor(uint64 id, ::std::string const& name, ::ListTag const& values);
47 // NOLINTEND
48
49public:
50 // virtual function thunks
51 // NOLINTBEGIN
52 MCAPI void $toNBT(::CompoundTag& tag, int val) const;
53
54 MCAPI bool $fromNBT(::CompoundTag const& tag, int& outValue) const;
55
56
57 // NOLINTEND
58
59public:
60 // vftables
61 // NOLINTBEGIN
62 MCNAPI static void** $vftable();
63 // NOLINTEND
64};
Definition BlockState.h:13
Definition CompoundTag.h:23
static MCAPI void ** $vftable()
Definition ListTag.h:20