Package net.minecraft.component.type
Enum Class TrophyTypeComponent
- All Implemented Interfaces:
Serializable,Comparable<TrophyTypeComponent>,Constable,TooltipAppender,StringIdentifiable
public enum TrophyTypeComponent
extends Enum<TrophyTypeComponent>
implements StringIdentifiable, TooltipAppender
- Mappings:
Namespace Name named net/minecraft/component/type/TrophyTypeComponentintermediary net/minecraft/class_11071official dzt
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<TrophyTypeComponent> private final Stringstatic final PacketCodec<ByteBuf, TrophyTypeComponent> Fields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTooltip(Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type, @Nullable PlayerEntity player, ItemStack stack) asString()Returns the unique string representation of the enum, used for serialization.static TrophyTypeComponentReturns the enum constant of this class with the specified name.static TrophyTypeComponent[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GOLD
- Mappings:
Namespace Name Mixin selector named GOLDLnet/minecraft/component/type/TrophyTypeComponent;GOLD:Lnet/minecraft/component/type/TrophyTypeComponent;intermediary field_58946Lnet/minecraft/class_11071;field_58946:Lnet/minecraft/class_11071;official aLdzt;a:Ldzt;
-
MEGA_SPUD
- Mappings:
Namespace Name Mixin selector named MEGA_SPUDLnet/minecraft/component/type/TrophyTypeComponent;MEGA_SPUD:Lnet/minecraft/component/type/TrophyTypeComponent;intermediary field_58947Lnet/minecraft/class_11071;field_58947:Lnet/minecraft/class_11071;official bLdzt;b:Ldzt;
-
NO_MEDAL
- Mappings:
Namespace Name Mixin selector named NO_MEDALLnet/minecraft/component/type/TrophyTypeComponent;NO_MEDAL:Lnet/minecraft/component/type/TrophyTypeComponent;intermediary field_58948Lnet/minecraft/class_11071;field_58948:Lnet/minecraft/class_11071;official cLdzt;c:Ldzt;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/component/type/TrophyTypeComponent;CODEC:Lcom/mojang/serialization/Codec;intermediary field_58949Lnet/minecraft/class_11071;field_58949:Lcom/mojang/serialization/Codec;official dLdzt;d:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/component/type/TrophyTypeComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_58950Lnet/minecraft/class_11071;field_58950:Lnet/minecraft/class_9139;official eLdzt;e:Lzg;
-
id
- Mappings:
Namespace Name Mixin selector named idLnet/minecraft/component/type/TrophyTypeComponent;id:Ljava/lang/String;intermediary field_58951Lnet/minecraft/class_11071;field_58951:Ljava/lang/String;official fLdzt;f:Ljava/lang/String;
-
-
Constructor Details
-
TrophyTypeComponent
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/component/type/TrophyTypeComponent;<init>(Ljava/lang/String;ILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_11071;<init>(Ljava/lang/String;ILjava/lang/String;)Vofficial <init>Ldzt;<init>(Ljava/lang/String;ILjava/lang/String;)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asStringin interfaceStringIdentifiable- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;official cLbbv;c()Ljava/lang/String;
-
appendTooltip
public void appendTooltip(Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type, @Nullable @Nullable PlayerEntity player, ItemStack stack) - Specified by:
appendTooltipin interfaceTooltipAppender- Mappings:
Namespace Name Mixin selector named appendTooltipLnet/minecraft/item/tooltip/TooltipAppender;appendTooltip(Lnet/minecraft/item/Item$TooltipContext;Ljava/util/function/Consumer;Lnet/minecraft/item/tooltip/TooltipType;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)Vintermediary method_57409Lnet/minecraft/class_9299;method_57409(Lnet/minecraft/class_1792$class_9635;Ljava/util/function/Consumer;Lnet/minecraft/class_1836;Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)Vofficial aLdgd;a(Ldco$b;Ljava/util/function/Consumer;Ldek;Lcuf;Ldcs;)V
-