Enum Class TrophyTypeComponent

java.lang.Object
java.lang.Enum<TrophyTypeComponent>
net.minecraft.component.type.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/TrophyTypeComponent
intermediary net/minecraft/class_11071
official dzt
  • Enum Constant Details

    • GOLD

      public static final TrophyTypeComponent GOLD
      Mappings:
      Namespace Name Mixin selector
      named GOLD Lnet/minecraft/component/type/TrophyTypeComponent;GOLD:Lnet/minecraft/component/type/TrophyTypeComponent;
      intermediary field_58946 Lnet/minecraft/class_11071;field_58946:Lnet/minecraft/class_11071;
      official a Ldzt;a:Ldzt;
    • MEGA_SPUD

      public static final TrophyTypeComponent MEGA_SPUD
      Mappings:
      Namespace Name Mixin selector
      named MEGA_SPUD Lnet/minecraft/component/type/TrophyTypeComponent;MEGA_SPUD:Lnet/minecraft/component/type/TrophyTypeComponent;
      intermediary field_58947 Lnet/minecraft/class_11071;field_58947:Lnet/minecraft/class_11071;
      official b Ldzt;b:Ldzt;
    • NO_MEDAL

      public static final TrophyTypeComponent NO_MEDAL
      Mappings:
      Namespace Name Mixin selector
      named NO_MEDAL Lnet/minecraft/component/type/TrophyTypeComponent;NO_MEDAL:Lnet/minecraft/component/type/TrophyTypeComponent;
      intermediary field_58948 Lnet/minecraft/class_11071;field_58948:Lnet/minecraft/class_11071;
      official c Ldzt;c:Ldzt;
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<TrophyTypeComponent> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/component/type/TrophyTypeComponent;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_58949 Lnet/minecraft/class_11071;field_58949:Lcom/mojang/serialization/Codec;
      official d Ldzt;d:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC

      public static final PacketCodec<ByteBuf,TrophyTypeComponent> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/component/type/TrophyTypeComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_58950 Lnet/minecraft/class_11071;field_58950:Lnet/minecraft/class_9139;
      official e Ldzt;e:Lzg;
    • id

      private final String id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/component/type/TrophyTypeComponent;id:Ljava/lang/String;
      intermediary field_58951 Lnet/minecraft/class_11071;field_58951:Ljava/lang/String;
      official f Ldzt;f:Ljava/lang/String;
  • Constructor Details

    • TrophyTypeComponent

      private TrophyTypeComponent(String id)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/component/type/TrophyTypeComponent;<init>(Ljava/lang/String;ILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_11071;<init>(Ljava/lang/String;ILjava/lang/String;)V
      official <init> Ldzt;<init>(Ljava/lang/String;ILjava/lang/String;)V
  • Method Details

    • values

      public static TrophyTypeComponent[] 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

      public static TrophyTypeComponent valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • asString

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      Returns:
      the unique string representation of the enum, used for serialization
      Mappings:
      Namespace Name Mixin selector
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      official c Lbbv;c()Ljava/lang/String;
    • appendTooltip

      public void appendTooltip(Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type, @Nullable @Nullable PlayerEntity player, ItemStack stack)
      Specified by:
      appendTooltip in interface TooltipAppender
      Mappings:
      Namespace Name Mixin selector
      named appendTooltip Lnet/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;)V
      intermediary method_57409 Lnet/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;)V
      official a Ldgd;a(Ldco$b;Ljava/util/function/Consumer;Ldek;Lcuf;Ldcs;)V