LeviLamina
Loading...
Searching...
No Matches
ArmorTrim.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
8// auto generated forward declare list
9// clang-format off
10class CompoundTag;
11class ItemStackBase;
12class Level;
13namespace Bedrock::Safety { class RedactableString; }
14// clang-format on
15
16class ArmorTrim {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<8, 48, ::HashedString> mPatternId;
21 ::ll::TypedStorage<8, 48, ::HashedString> mMaterialId;
22 // NOLINTEND
23
24public:
25 // prevent constructor by default
26 ArmorTrim();
27
28public:
29 // member functions
30 // NOLINTBEGIN
31 MCAPI ArmorTrim(::HashedString patternId, ::HashedString materialId);
32
33 MCFOLD ::HashedString const& getMaterialId() const;
34
35 MCFOLD ::HashedString const& getPatternId() const;
36
37 MCAPI void load(::CompoundTag const& tag);
38
39 MCAPI void save(::CompoundTag& tag);
40
41 MCAPI ~ArmorTrim();
42 // NOLINTEND
43
44public:
45 // static functions
46 // NOLINTBEGIN
47 MCAPI static void appendUpgradeHoverText(
48 ::ItemStackBase const& stack,
49 ::Level& level,
51 );
52
53 MCAPI static ::std::optional<::ArmorTrim> getTrim(::ItemStackBase const& instance);
54
55 MCAPI static void setTrim(::ItemStackBase& instance, ::ArmorTrim trim);
56 // NOLINTEND
57
58public:
59 // static variables
60 // NOLINTBEGIN
61 MCAPI static ::std::string const& TAG_TRIM();
62
63 MCAPI static ::std::string const& TAG_TRIM_MATERIAL();
64
65 MCAPI static ::std::string const& TAG_TRIM_PATTERN();
66
67 MCAPI static ::std::string const& UPGRADE_DESCRIPTION();
68
69 MCAPI static ::std::string const& UPGRADE_DESCRIPTION_FORMAT();
70
71 MCAPI static ::std::string const& WRONG_VERSION_OR_ITEM_ERROR();
72 // NOLINTEND
73
74public:
75 // constructor thunks
76 // NOLINTBEGIN
77 MCAPI void* $ctor(::HashedString patternId, ::HashedString materialId);
78 // NOLINTEND
79
80public:
81 // destructor thunk
82 // NOLINTBEGIN
83 MCFOLD void $dtor();
84 // NOLINTEND
85};
Definition RedactableString.h:10
Definition CompoundTag.h:23
Definition HashedString.h:5
Definition ItemStackBase.h:52
Definition Level.h:255