LeviLamina
Loading...
Searching...
No Matches
DyeableItemComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/shared_types/Color255RGB.h"
7#include "mc/world/item/components/NetworkedItemComponent.h"
8#include "mc/world/level/storage/AllExperiments.h"
9
10// auto generated forward declare list
11// clang-format off
12class CompoundTag;
13class HashedString;
14class ItemDescriptor;
15class ItemStackBase;
16class SemVersion;
17namespace Bedrock::Safety { class RedactableString; }
18namespace SharedTypes::v1_21_30 { struct DyeableItemComponent; }
19namespace cereal { struct ReflectionCtx; }
20namespace mce { class Color; }
21// clang-format on
22
23class DyeableItemComponent : public ::NetworkedItemComponent<::DyeableItemComponent> {
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<4, 16, ::SharedTypes::Color255RGB> mDefaultColor;
28 // NOLINTEND
29
30public:
31 // member functions
32 // NOLINTBEGIN
33 MCAPI DyeableItemComponent();
34
35 MCAPI explicit DyeableItemComponent(::mce::Color const& color);
36
37 MCAPI explicit DyeableItemComponent(::SharedTypes::v1_21_30::DyeableItemComponent component);
38
39 MCAPI void
40 appendFormattedHovertext(::ItemStackBase const& item, ::Bedrock::Safety::RedactableString& hovertext, bool) const;
41
42 MCAPI void clearColor(::ItemStackBase& instance) const;
43
44 MCAPI ::mce::Color getColor(::CompoundTag const* userData, ::ItemDescriptor const&) const;
45
46 MCFOLD ::mce::Color const& getDefaultColor() const;
47
48 MCAPI bool hasCustomColor(::ItemStackBase const& instance) const;
49
50 MCAPI void setColor(::ItemStackBase& instance, ::mce::Color const& color) const;
51 // NOLINTEND
52
53public:
54 // static functions
55 // NOLINTBEGIN
56 MCAPI static void bindType(
58 ::std::vector<::AllExperiments> const& requiredToggles,
59 ::std::optional<::SemVersion> releasedMinFormatVersion
60 );
61
62 MCAPI static ::HashedString const& getIdentifier();
63 // NOLINTEND
64
65public:
66 // constructor thunks
67 // NOLINTBEGIN
68 MCAPI void* $ctor();
69
70 MCFOLD void* $ctor(::mce::Color const& color);
71
72 MCFOLD void* $ctor(::SharedTypes::v1_21_30::DyeableItemComponent component);
73 // NOLINTEND
74
75public:
76 // vftables
77 // NOLINTBEGIN
78 MCNAPI static void** $vftable();
79 // NOLINTEND
80};
Definition RedactableString.h:10
Definition CompoundTag.h:23
static MCAPI void ** $vftable()
Definition HashedString.h:5
Definition ItemDescriptor.h:25
Definition ItemStackBase.h:52
Definition NetworkedItemComponent.h:7
Definition SemVersion.h:15
Definition Color.h:13
Definition DyeableItemComponent.h:15
Definition ReflectionCtx.h:11
Definition ctx.h:5