Enum Class ParrotEntity.Variant

java.lang.Object
java.lang.Enum<ParrotEntity.Variant>
net.minecraft.entity.passive.ParrotEntity.Variant
All Implemented Interfaces:
Serializable, Comparable<ParrotEntity.Variant>, Constable, StringIdentifiable
Enclosing class:
ParrotEntity

public static enum ParrotEntity.Variant extends Enum<ParrotEntity.Variant> implements StringIdentifiable
Mappings:
Namespace Name
named net/minecraft/entity/passive/ParrotEntity$Variant
intermediary net/minecraft/class_1453$class_7989
official cim$b
  • Enum Constant Details

    • RED_BLUE

      public static final ParrotEntity.Variant RED_BLUE
      Mappings:
      Namespace Name Mixin selector
      named RED_BLUE Lnet/minecraft/entity/passive/ParrotEntity$Variant;RED_BLUE:Lnet/minecraft/entity/passive/ParrotEntity$Variant;
      intermediary field_41550 Lnet/minecraft/class_1453$class_7989;field_41550:Lnet/minecraft/class_1453$class_7989;
      official a Lcim$b;a:Lcim$b;
    • BLUE

      public static final ParrotEntity.Variant BLUE
      Mappings:
      Namespace Name Mixin selector
      named BLUE Lnet/minecraft/entity/passive/ParrotEntity$Variant;BLUE:Lnet/minecraft/entity/passive/ParrotEntity$Variant;
      intermediary field_41551 Lnet/minecraft/class_1453$class_7989;field_41551:Lnet/minecraft/class_1453$class_7989;
      official b Lcim$b;b:Lcim$b;
    • GREEN

      public static final ParrotEntity.Variant GREEN
      Mappings:
      Namespace Name Mixin selector
      named GREEN Lnet/minecraft/entity/passive/ParrotEntity$Variant;GREEN:Lnet/minecraft/entity/passive/ParrotEntity$Variant;
      intermediary field_41552 Lnet/minecraft/class_1453$class_7989;field_41552:Lnet/minecraft/class_1453$class_7989;
      official c Lcim$b;c:Lcim$b;
    • YELLOW_BLUE

      public static final ParrotEntity.Variant YELLOW_BLUE
      Mappings:
      Namespace Name Mixin selector
      named YELLOW_BLUE Lnet/minecraft/entity/passive/ParrotEntity$Variant;YELLOW_BLUE:Lnet/minecraft/entity/passive/ParrotEntity$Variant;
      intermediary field_41553 Lnet/minecraft/class_1453$class_7989;field_41553:Lnet/minecraft/class_1453$class_7989;
      official d Lcim$b;d:Lcim$b;
    • GRAY

      public static final ParrotEntity.Variant GRAY
      Mappings:
      Namespace Name Mixin selector
      named GRAY Lnet/minecraft/entity/passive/ParrotEntity$Variant;GRAY:Lnet/minecraft/entity/passive/ParrotEntity$Variant;
      intermediary field_41554 Lnet/minecraft/class_1453$class_7989;field_41554:Lnet/minecraft/class_1453$class_7989;
      official e Lcim$b;e:Lcim$b;
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<ParrotEntity.Variant> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/entity/passive/ParrotEntity$Variant;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_41555 Lnet/minecraft/class_1453$class_7989;field_41555:Lcom/mojang/serialization/Codec;
      official f Lcim$b;f:Lcom/mojang/serialization/Codec;
    • BY_ID

      private static final IntFunction<ParrotEntity.Variant> BY_ID
      Mappings:
      Namespace Name Mixin selector
      named BY_ID Lnet/minecraft/entity/passive/ParrotEntity$Variant;BY_ID:Ljava/util/function/IntFunction;
      intermediary field_41556 Lnet/minecraft/class_1453$class_7989;field_41556:Ljava/util/function/IntFunction;
      official g Lcim$b;g:Ljava/util/function/IntFunction;
    • id

      final int id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/entity/passive/ParrotEntity$Variant;id:I
      intermediary field_41557 Lnet/minecraft/class_1453$class_7989;field_41557:I
      official h Lcim$b;h:I
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/entity/passive/ParrotEntity$Variant;name:Ljava/lang/String;
      intermediary field_41558 Lnet/minecraft/class_1453$class_7989;field_41558:Ljava/lang/String;
      official i Lcim$b;i:Ljava/lang/String;
  • Constructor Details

    • Variant

      private Variant(int id, String name)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/passive/ParrotEntity$Variant;<init>(Ljava/lang/String;IILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_1453$class_7989;<init>(Ljava/lang/String;IILjava/lang/String;)V
      official <init> Lcim$b;<init>(Ljava/lang/String;IILjava/lang/String;)V
  • Method Details

    • values

      public static ParrotEntity.Variant[] 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 ParrotEntity.Variant 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
    • getId

      public int getId()
      Mappings:
      Namespace Name Mixin selector
      named getId Lnet/minecraft/entity/passive/ParrotEntity$Variant;getId()I
      intermediary method_47849 Lnet/minecraft/class_1453$class_7989;method_47849()I
      official a Lcim$b;a()I
    • byIndex

      public static ParrotEntity.Variant byIndex(int index)
      Mappings:
      Namespace Name Mixin selector
      named byIndex Lnet/minecraft/entity/passive/ParrotEntity$Variant;byIndex(I)Lnet/minecraft/entity/passive/ParrotEntity$Variant;
      intermediary method_47850 Lnet/minecraft/class_1453$class_7989;method_47850(I)Lnet/minecraft/class_1453$class_7989;
      official a Lcim$b;a(I)Lcim$b;
    • 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 Lbba;c()Ljava/lang/String;