枚举 MooshroomEntity.Type

    • 枚举常量详细资料

      • RED

        public static final MooshroomEntity.Type RED
        Mappings:
        Namespace Name Mixin selector
        official a Lbdk$a;a:Lbdk$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 Lbdk$a;b:Lbdk$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;
    • 字段详细资料

      • name

        private final String name
        Mappings:
        Namespace Name Mixin selector
        official c Lbdk$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 Lbdk$a;d:Lcjr;
        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;
    • 构造器详细资料

      • Type

        private Type​(String name,
                     BlockState mushroom)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lbdk$a;<init>(Ljava/lang/String;ILjava/lang/String;Lcjr;)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
    • 方法详细资料

      • values

        public static MooshroomEntity.Type[] values()
        按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:
        for (MooshroomEntity.Type c : MooshroomEntity.Type.values())
            System.out.println(c);
        
        返回:
        按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
      • valueOf

        public static MooshroomEntity.Type valueOf​(String name)
        返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
        参数:
        name - 要返回的枚举常量的名称。
        返回:
        返回带有指定名称的枚举常量
        抛出:
        IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
        NullPointerException - 如果参数为空值
      • getMushroomState

        public BlockState getMushroomState()
        Mappings:
        Namespace Name Mixin selector
        official a Lbdk$a;a()Lcjr;
        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 Lbdk$a;b(Ljava/lang/String;)Lbdk$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;