LeviLamina
Loading...
Searching...
No Matches
BlockStateMeta.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/nbt/Tag.h"
7#include "mc/util/BidirectionalUnorderedMap.h"
8
9// auto generated forward declare list
10// clang-format off
11class BlockState;
12class ListTag;
14// clang-format on
15
16class BlockStateMeta {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<1, 1, ::Tag::Type> mType;
21 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ListTag>> mEnumValues;
22 ::ll::TypedStorage<8, 128, ::BidirectionalUnorderedMap<int, uint64>> mHashIndexMap;
23 ::ll::TypedStorage<8, 8, ::BlockState const&> mBlockState;
24 ::ll::TypedStorage<8, 32, ::std::string> mName;
25 // NOLINTEND
26
27public:
28 // prevent constructor by default
29 BlockStateMeta& operator=(BlockStateMeta const&);
30 BlockStateMeta(BlockStateMeta const&);
31 BlockStateMeta();
32
33public:
34 // member functions
35 // NOLINTBEGIN
36 MCAPI BlockStateMeta(::BlockState const& blockState, ::BlockStateDefinition const& def);
37
38 MCAPI bool const getBool(int index) const;
39
40 MCAPI uint64 getID() const;
41
42 MCAPI int const getInt(int index) const;
43
44 MCFOLD ::std::string const& getName() const;
45
46 MCFOLD ::BlockState const& getState() const;
47
48 MCAPI ::std::string const& getString(int index) const;
49
50 MCFOLD ::Tag::Type const getType() const;
51
52 MCAPI int indexOf(uint64 const& h) const;
53 // NOLINTEND
54
55public:
56 // constructor thunks
57 // NOLINTBEGIN
58 MCAPI void* $ctor(::BlockState const& blockState, ::BlockStateDefinition const& def);
59 // NOLINTEND
60};
Definition BlockState.h:14
Definition ListTag.h:21
Definition BlockStateDefinition.h:13