Enum Class MooshroomEntity.Variant

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

public static enum MooshroomEntity.Variant extends Enum<MooshroomEntity.Variant> implements StringIdentifiable
Mappings:
Namespace Name
named net/minecraft/entity/passive/MooshroomEntity$Variant
intermediary net/minecraft/class_1438$class_4053
official cmw$a
  • Enum Constant Details

    • RED

      public static final MooshroomEntity.Variant RED
      Mappings:
      Namespace Name Mixin selector
      named RED Lnet/minecraft/entity/passive/MooshroomEntity$Variant;RED:Lnet/minecraft/entity/passive/MooshroomEntity$Variant;
      intermediary field_18109 Lnet/minecraft/class_1438$class_4053;field_18109:Lnet/minecraft/class_1438$class_4053;
      official a Lcmw$a;a:Lcmw$a;
    • BROWN

      public static final MooshroomEntity.Variant BROWN
      Mappings:
      Namespace Name Mixin selector
      named BROWN Lnet/minecraft/entity/passive/MooshroomEntity$Variant;BROWN:Lnet/minecraft/entity/passive/MooshroomEntity$Variant;
      intermediary field_18110 Lnet/minecraft/class_1438$class_4053;field_18110:Lnet/minecraft/class_1438$class_4053;
      official b Lcmw$a;b:Lcmw$a;
  • Field Details

    • DEFAULT

      public static final MooshroomEntity.Variant DEFAULT
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT Lnet/minecraft/entity/passive/MooshroomEntity$Variant;DEFAULT:Lnet/minecraft/entity/passive/MooshroomEntity$Variant;
      intermediary field_57612 Lnet/minecraft/class_1438$class_4053;field_57612:Lnet/minecraft/class_1438$class_4053;
      official c Lcmw$a;c:Lcmw$a;
    • CODEC

      public static final com.mojang.serialization.Codec<MooshroomEntity.Variant> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/entity/passive/MooshroomEntity$Variant;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_41549 Lnet/minecraft/class_1438$class_4053;field_41549:Lcom/mojang/serialization/Codec;
      official d Lcmw$a;d:Lcom/mojang/serialization/Codec;
    • INDEX_MAPPER

      private static final IntFunction<MooshroomEntity.Variant> INDEX_MAPPER
      Mappings:
      Namespace Name Mixin selector
      named INDEX_MAPPER Lnet/minecraft/entity/passive/MooshroomEntity$Variant;INDEX_MAPPER:Ljava/util/function/IntFunction;
      intermediary field_55963 Lnet/minecraft/class_1438$class_4053;field_55963:Ljava/util/function/IntFunction;
      official f Lcmw$a;f:Ljava/util/function/IntFunction;
    • PACKET_CODEC

      public static final PacketCodec<ByteBuf,MooshroomEntity.Variant> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/entity/passive/MooshroomEntity$Variant;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_55962 Lnet/minecraft/class_1438$class_4053;field_55962:Lnet/minecraft/class_9139;
      official e Lcmw$a;e:Lzm;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/entity/passive/MooshroomEntity$Variant;name:Ljava/lang/String;
      intermediary field_18111 Lnet/minecraft/class_1438$class_4053;field_18111:Ljava/lang/String;
      official g Lcmw$a;g:Ljava/lang/String;
    • index

      final int index
      Mappings:
      Namespace Name Mixin selector
      named index Lnet/minecraft/entity/passive/MooshroomEntity$Variant;index:I
      intermediary field_55964 Lnet/minecraft/class_1438$class_4053;field_55964:I
      official h Lcmw$a;h:I
    • mushroom

      private final BlockState mushroom
      Mappings:
      Namespace Name Mixin selector
      named mushroom Lnet/minecraft/entity/passive/MooshroomEntity$Variant;mushroom:Lnet/minecraft/block/BlockState;
      intermediary field_18112 Lnet/minecraft/class_1438$class_4053;field_18112:Lnet/minecraft/class_2680;
      official i Lcmw$a;i:Leeb;
  • Constructor Details

    • Variant

      private Variant(String name, int index, BlockState mushroom)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/passive/MooshroomEntity$Variant;<init>(Ljava/lang/String;ILjava/lang/String;ILnet/minecraft/block/BlockState;)V
      intermediary <init> Lnet/minecraft/class_1438$class_4053;<init>(Ljava/lang/String;ILjava/lang/String;ILnet/minecraft/class_2680;)V
      official <init> Lcmw$a;<init>(Ljava/lang/String;ILjava/lang/String;ILeeb;)V
  • Method Details

    • values

      public static MooshroomEntity.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 MooshroomEntity.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
    • getMushroomState

      public BlockState getMushroomState()
      Mappings:
      Namespace Name Mixin selector
      named getMushroomState Lnet/minecraft/entity/passive/MooshroomEntity$Variant;getMushroomState()Lnet/minecraft/block/BlockState;
      intermediary method_18437 Lnet/minecraft/class_1438$class_4053;method_18437()Lnet/minecraft/class_2680;
      official a Lcmw$a;a()Leeb;
    • 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 Lbda;c()Ljava/lang/String;
    • getIndex

      private int getIndex()
      Mappings:
      Namespace Name Mixin selector
      named getIndex Lnet/minecraft/entity/passive/MooshroomEntity$Variant;getIndex()I
      intermediary method_66678 Lnet/minecraft/class_1438$class_4053;method_66678()I
      official b Lcmw$a;b()I
    • fromIndex

      static MooshroomEntity.Variant fromIndex(int index)
      Mappings:
      Namespace Name Mixin selector
      named fromIndex Lnet/minecraft/entity/passive/MooshroomEntity$Variant;fromIndex(I)Lnet/minecraft/entity/passive/MooshroomEntity$Variant;
      intermediary method_66677 Lnet/minecraft/class_1438$class_4053;method_66677(I)Lnet/minecraft/class_1438$class_4053;
      official a Lcmw$a;a(I)Lcmw$a;