Enum Class ItemDespawnType

java.lang.Object
java.lang.Enum<ItemDespawnType>
net.minecraft.vote.ItemDespawnType
All Implemented Interfaces:
Serializable, Comparable<ItemDespawnType>, Constable, StringIdentifiable

public enum ItemDespawnType extends Enum<ItemDespawnType> implements StringIdentifiable
Mappings:
Namespace Name
official bfh
intermediary net/minecraft/class_8332
named net/minecraft/vote/ItemDespawnType
  • Enum Constant Details

    • DESPAWN_ALL

      public static final ItemDespawnType DESPAWN_ALL
      Mappings:
      Namespace Name Mixin selector
      official a Lbfh;a:Lbfh;
      intermediary field_43880 Lnet/minecraft/class_8332;field_43880:Lnet/minecraft/class_8332;
      named DESPAWN_ALL Lnet/minecraft/vote/ItemDespawnType;DESPAWN_ALL:Lnet/minecraft/vote/ItemDespawnType;
    • KEEP_PLAYER_DROPS

      public static final ItemDespawnType KEEP_PLAYER_DROPS
      Mappings:
      Namespace Name Mixin selector
      official b Lbfh;b:Lbfh;
      intermediary field_43881 Lnet/minecraft/class_8332;field_43881:Lnet/minecraft/class_8332;
      named KEEP_PLAYER_DROPS Lnet/minecraft/vote/ItemDespawnType;KEEP_PLAYER_DROPS:Lnet/minecraft/vote/ItemDespawnType;
    • DESPAWN_NONE

      public static final ItemDespawnType DESPAWN_NONE
      Mappings:
      Namespace Name Mixin selector
      official c Lbfh;c:Lbfh;
      intermediary field_43882 Lnet/minecraft/class_8332;field_43882:Lnet/minecraft/class_8332;
      named DESPAWN_NONE Lnet/minecraft/vote/ItemDespawnType;DESPAWN_NONE:Lnet/minecraft/vote/ItemDespawnType;
  • Field Details

    • codec

      public static final StringIdentifiable.Codec<ItemDespawnType> codec
      Mappings:
      Namespace Name Mixin selector
      official d Lbfh;d:Lcom/mojang/serialization/Codec;
      intermediary field_43883 Lnet/minecraft/class_8332;field_43883:Lcom/mojang/serialization/Codec;
      named codec Lnet/minecraft/vote/ItemDespawnType;codec:Lcom/mojang/serialization/Codec;
    • id

      private final String id
      Mappings:
      Namespace Name Mixin selector
      official e Lbfh;e:Ljava/lang/String;
      intermediary field_43884 Lnet/minecraft/class_8332;field_43884:Ljava/lang/String;
      named id Lnet/minecraft/vote/ItemDespawnType;id:Ljava/lang/String;
    • name

      private final Text name
      Mappings:
      Namespace Name Mixin selector
      official f Lbfh;f:Lsw;
      intermediary field_43885 Lnet/minecraft/class_8332;field_43885:Lnet/minecraft/class_2561;
      named name Lnet/minecraft/vote/ItemDespawnType;name:Lnet/minecraft/text/Text;
  • Constructor Details

    • ItemDespawnType

      private ItemDespawnType(String id)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbfh;<init>(Ljava/lang/String;ILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_8332;<init>(Ljava/lang/String;ILjava/lang/String;)V
      named <init> Lnet/minecraft/vote/ItemDespawnType;<init>(Ljava/lang/String;ILjava/lang/String;)V
  • Method Details

    • values

      public static ItemDespawnType[] 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 ItemDespawnType 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
      official c Lapw;c()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
    • getName

      public Text getName()
      Mappings:
      Namespace Name Mixin selector
      official a Lbfh;a()Lsw;
      intermediary method_50380 Lnet/minecraft/class_8332;method_50380()Lnet/minecraft/class_2561;
      named getName Lnet/minecraft/vote/ItemDespawnType;getName()Lnet/minecraft/text/Text;