Enum MooshroomEntity.Type

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

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

    • RED

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

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

    • name

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

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

    • Type

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

    • values

      public static MooshroomEntity.Type[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static MooshroomEntity.Type valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getMushroomState

      @Environment(CLIENT) public BlockState getMushroomState()
      Mappings:
      Namespace Name Mixin selector
      official a Lbbu$a;a()Lcht;
      intermediary method_18437 Lnet/minecraft/class_1438$class_4053;method_18437()Lnet/minecraft/class_2680;
      named getMushroomState Lnet/minecraft/entity/passive/MooshroomEntity$Type;getMushroomState()Lnet/minecraft/block/BlockState;
    • fromName

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