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 { struct Color255RGB; }
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 // virtual functions
32 // NOLINTBEGIN
33 virtual ~DyeableItemComponent() /*override*/ = default;
34 // NOLINTEND
35
36public:
37 // member functions
38 // NOLINTBEGIN
39 MCAPI void
40 appendFormattedHovertext(::ItemStackBase const& item, ::Bedrock::Safety::RedactableString& hovertext, bool) const;
41
42 MCFOLD void clearColor(::ItemStackBase& instance) const;
43
44 MCAPI ::mce::Color getColor(::CompoundTag const* userData, ::ItemDescriptor const&) const;
45
46 MCAPI bool hasCustomColor(::ItemStackBase const& instance) const;
47
48 MCAPI void setColor(::ItemStackBase& instance, ::mce::Color const& color) const;
49 // NOLINTEND
50
51public:
52 // static functions
53 // NOLINTBEGIN
54 MCAPI static void bindType(
56 ::std::vector<::AllExperiments> const& requiredToggles,
57 ::std::optional<::SemVersion> releasedMinFormatVersion
58 );
59
60 MCAPI static ::HashedString const& getIdentifier();
61 // NOLINTEND
62
63public:
64 // vftables
65 // NOLINTBEGIN
66 MCNAPI static void** $vftable();
67 // NOLINTEND
68};
Definition RedactableString.h:10
Definition CompoundTag.h:23
Definition DyeableItemComponent.h:23
static MCAPI void ** $vftable()
Definition HashedString.h:5
Definition ItemDescriptor.h:23
Definition ItemStackBase.h:44
Definition NetworkedItemComponent.h:7
Definition SemVersion.h:15
Definition Color.h:13
Definition Color255RGB.h:15
Definition ReflectionCtx.h:11
Definition ctx.h:5