Enum Class SalmonEntity.Variant

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

public static enum SalmonEntity.Variant extends Enum<SalmonEntity.Variant> implements StringIdentifiable
Mappings:
Namespace Name
named net/minecraft/entity/passive/SalmonEntity$Variant
intermediary net/minecraft/class_1462$class_9869
official cir$a
  • Enum Constant Details

    • SMALL

      public static final SalmonEntity.Variant SMALL
      Mappings:
      Namespace Name Mixin selector
      named SMALL Lnet/minecraft/entity/passive/SalmonEntity$Variant;SMALL:Lnet/minecraft/entity/passive/SalmonEntity$Variant;
      intermediary field_52470 Lnet/minecraft/class_1462$class_9869;field_52470:Lnet/minecraft/class_1462$class_9869;
      official a Lcir$a;a:Lcir$a;
    • MEDIUM

      public static final SalmonEntity.Variant MEDIUM
      Mappings:
      Namespace Name Mixin selector
      named MEDIUM Lnet/minecraft/entity/passive/SalmonEntity$Variant;MEDIUM:Lnet/minecraft/entity/passive/SalmonEntity$Variant;
      intermediary field_52471 Lnet/minecraft/class_1462$class_9869;field_52471:Lnet/minecraft/class_1462$class_9869;
      official b Lcir$a;b:Lcir$a;
    • LARGE

      public static final SalmonEntity.Variant LARGE
      Mappings:
      Namespace Name Mixin selector
      named LARGE Lnet/minecraft/entity/passive/SalmonEntity$Variant;LARGE:Lnet/minecraft/entity/passive/SalmonEntity$Variant;
      intermediary field_52472 Lnet/minecraft/class_1462$class_9869;field_52472:Lnet/minecraft/class_1462$class_9869;
      official c Lcir$a;c:Lcir$a;
  • Field Details

    • CODEC

      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/entity/passive/SalmonEntity$Variant;CODEC:Lnet/minecraft/util/StringIdentifiable$EnumCodec;
      intermediary field_52473 Lnet/minecraft/class_1462$class_9869;field_52473:Lnet/minecraft/class_3542$class_7292;
      official d Lcir$a;d:Lbba$a;
    • id

      final String id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/entity/passive/SalmonEntity$Variant;id:Ljava/lang/String;
      intermediary field_52474 Lnet/minecraft/class_1462$class_9869;field_52474:Ljava/lang/String;
      official e Lcir$a;e:Ljava/lang/String;
    • scale

      final float scale
      Mappings:
      Namespace Name Mixin selector
      named scale Lnet/minecraft/entity/passive/SalmonEntity$Variant;scale:F
      intermediary field_53975 Lnet/minecraft/class_1462$class_9869;field_53975:F
      official f Lcir$a;f:F
  • Constructor Details

    • Variant

      private Variant(String id, float scale)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/passive/SalmonEntity$Variant;<init>(Ljava/lang/String;ILjava/lang/String;F)V
      intermediary <init> Lnet/minecraft/class_1462$class_9869;<init>(Ljava/lang/String;ILjava/lang/String;F)V
      official <init> Lcir$a;<init>(Ljava/lang/String;ILjava/lang/String;F)V
  • Method Details

    • values

      public static SalmonEntity.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 SalmonEntity.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
    • 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;
    • byId

      static SalmonEntity.Variant byId(String id)
      Mappings:
      Namespace Name Mixin selector
      named byId Lnet/minecraft/entity/passive/SalmonEntity$Variant;byId(Ljava/lang/String;)Lnet/minecraft/entity/passive/SalmonEntity$Variant;
      intermediary method_61474 Lnet/minecraft/class_1462$class_9869;method_61474(Ljava/lang/String;)Lnet/minecraft/class_1462$class_9869;
      official a Lcir$a;a(Ljava/lang/String;)Lcir$a;