Enum Class MooshroomEntity.Type

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

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

    • RED

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

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

    • CODEC

      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/entity/passive/MooshroomEntity$Type;CODEC:Lnet/minecraft/util/StringIdentifiable$EnumCodec;
      intermediary field_41549 Lnet/minecraft/class_1438$class_4053;field_41549:Lnet/minecraft/class_3542$class_7292;
      official c Lcit$a;c:Lbag$a;
    • field_55963

      private static final IntFunction<MooshroomEntity.Type> field_55963
      Mappings:
      Namespace Name Mixin selector
      named field_55963 Lnet/minecraft/entity/passive/MooshroomEntity$Type;field_55963:Ljava/util/function/IntFunction;
      intermediary field_55963 Lnet/minecraft/class_1438$class_4053;field_55963:Ljava/util/function/IntFunction;
      official e Lcit$a;e:Ljava/util/function/IntFunction;
    • field_55962

      public static final PacketCodec<ByteBuf,MooshroomEntity.Type> field_55962
      Mappings:
      Namespace Name Mixin selector
      named field_55962 Lnet/minecraft/entity/passive/MooshroomEntity$Type;field_55962:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_55962 Lnet/minecraft/class_1438$class_4053;field_55962:Lnet/minecraft/class_9139;
      official d Lcit$a;d:Lyt;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/entity/passive/MooshroomEntity$Type;name:Ljava/lang/String;
      intermediary field_18111 Lnet/minecraft/class_1438$class_4053;field_18111:Ljava/lang/String;
      official f Lcit$a;f:Ljava/lang/String;
    • field_55964

      final int field_55964
      Mappings:
      Namespace Name Mixin selector
      named field_55964 Lnet/minecraft/entity/passive/MooshroomEntity$Type;field_55964:I
      intermediary field_55964 Lnet/minecraft/class_1438$class_4053;field_55964:I
      official g Lcit$a;g:I
    • mushroom

      private final BlockState mushroom
      Mappings:
      Namespace Name Mixin selector
      named mushroom Lnet/minecraft/entity/passive/MooshroomEntity$Type;mushroom:Lnet/minecraft/block/BlockState;
      intermediary field_18112 Lnet/minecraft/class_1438$class_4053;field_18112:Lnet/minecraft/class_2680;
      official h Lcit$a;h:Ldym;
  • Constructor Details

    • Type

      private Type(String name, int int2, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/passive/MooshroomEntity$Type;<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> Lcit$a;<init>(Ljava/lang/String;ILjava/lang/String;ILdym;)V
  • Method Details

    • values

      public static MooshroomEntity.Type[] 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.Type 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$Type;getMushroomState()Lnet/minecraft/block/BlockState;
      intermediary method_18437 Lnet/minecraft/class_1438$class_4053;method_18437()Lnet/minecraft/class_2680;
      official a Lcit$a;a()Ldym;
    • 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 Lbag;c()Ljava/lang/String;
    • method_66678

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

      static MooshroomEntity.Type fromName(String name)
      Mappings:
      Namespace Name Mixin selector
      named fromName Lnet/minecraft/entity/passive/MooshroomEntity$Type;fromName(Ljava/lang/String;)Lnet/minecraft/entity/passive/MooshroomEntity$Type;
      intermediary method_18441 Lnet/minecraft/class_1438$class_4053;method_18441(Ljava/lang/String;)Lnet/minecraft/class_1438$class_4053;
      official a Lcit$a;a(Ljava/lang/String;)Lcit$a;
    • method_66677

      static MooshroomEntity.Type method_66677(int int2)
      Mappings:
      Namespace Name Mixin selector
      named method_66677 Lnet/minecraft/entity/passive/MooshroomEntity$Type;method_66677(I)Lnet/minecraft/entity/passive/MooshroomEntity$Type;
      intermediary method_66677 Lnet/minecraft/class_1438$class_4053;method_66677(I)Lnet/minecraft/class_1438$class_4053;
      official a Lcit$a;a(I)Lcit$a;