Package net.minecraft.entity.boss
Enum BossBar.Color
- All Implemented Interfaces:
Serializable
,Comparable<BossBar.Color>
,java.lang.constant.Constable
- Enclosing class:
- BossBar
public static enum BossBar.Color extends Enum<BossBar.Color>
- Mappings:
Namespace Name official apg$a
intermediary net/minecraft/class_1259$class_1260
named net/minecraft/entity/boss/BossBar$Color
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description private Formatting
format
private String
name
-
Constructor Summary
Constructors Modifier Constructor Description private
Color(String name, Formatting format)
-
Method Summary
Modifier and Type Method Description static BossBar.Color
byName(String name)
String
getName()
Formatting
getTextFormat()
static BossBar.Color
valueOf(String name)
Returns the enum constant of this type with the specified name.static BossBar.Color[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PINK
- Mappings:
Namespace Name Mixin selector official a
Lapg$a;a:Lapg$a;
intermediary field_5788
Lnet/minecraft/class_1259$class_1260;field_5788:Lnet/minecraft/class_1259$class_1260;
named PINK
Lnet/minecraft/entity/boss/BossBar$Color;PINK:Lnet/minecraft/entity/boss/BossBar$Color;
-
BLUE
- Mappings:
Namespace Name Mixin selector official b
Lapg$a;b:Lapg$a;
intermediary field_5780
Lnet/minecraft/class_1259$class_1260;field_5780:Lnet/minecraft/class_1259$class_1260;
named BLUE
Lnet/minecraft/entity/boss/BossBar$Color;BLUE:Lnet/minecraft/entity/boss/BossBar$Color;
-
RED
- Mappings:
Namespace Name Mixin selector official c
Lapg$a;c:Lapg$a;
intermediary field_5784
Lnet/minecraft/class_1259$class_1260;field_5784:Lnet/minecraft/class_1259$class_1260;
named RED
Lnet/minecraft/entity/boss/BossBar$Color;RED:Lnet/minecraft/entity/boss/BossBar$Color;
-
GREEN
- Mappings:
Namespace Name Mixin selector official d
Lapg$a;d:Lapg$a;
intermediary field_5785
Lnet/minecraft/class_1259$class_1260;field_5785:Lnet/minecraft/class_1259$class_1260;
named GREEN
Lnet/minecraft/entity/boss/BossBar$Color;GREEN:Lnet/minecraft/entity/boss/BossBar$Color;
-
YELLOW
- Mappings:
Namespace Name Mixin selector official e
Lapg$a;e:Lapg$a;
intermediary field_5782
Lnet/minecraft/class_1259$class_1260;field_5782:Lnet/minecraft/class_1259$class_1260;
named YELLOW
Lnet/minecraft/entity/boss/BossBar$Color;YELLOW:Lnet/minecraft/entity/boss/BossBar$Color;
-
PURPLE
- Mappings:
Namespace Name Mixin selector official f
Lapg$a;f:Lapg$a;
intermediary field_5783
Lnet/minecraft/class_1259$class_1260;field_5783:Lnet/minecraft/class_1259$class_1260;
named PURPLE
Lnet/minecraft/entity/boss/BossBar$Color;PURPLE:Lnet/minecraft/entity/boss/BossBar$Color;
-
WHITE
- Mappings:
Namespace Name Mixin selector official g
Lapg$a;g:Lapg$a;
intermediary field_5786
Lnet/minecraft/class_1259$class_1260;field_5786:Lnet/minecraft/class_1259$class_1260;
named WHITE
Lnet/minecraft/entity/boss/BossBar$Color;WHITE:Lnet/minecraft/entity/boss/BossBar$Color;
-
-
Field Details
-
name
- Mappings:
Namespace Name Mixin selector official h
Lapg$a;h:Ljava/lang/String;
intermediary field_5781
Lnet/minecraft/class_1259$class_1260;field_5781:Ljava/lang/String;
named name
Lnet/minecraft/entity/boss/BossBar$Color;name:Ljava/lang/String;
-
format
- Mappings:
Namespace Name Mixin selector official i
Lapg$a;i:Lk;
intermediary field_5787
Lnet/minecraft/class_1259$class_1260;field_5787:Lnet/minecraft/class_124;
named format
Lnet/minecraft/entity/boss/BossBar$Color;format:Lnet/minecraft/util/Formatting;
-
-
Constructor Details
-
Color
- Mappings:
Namespace Name Mixin selector official <init>
Lapg$a;<init>(Ljava/lang/String;ILjava/lang/String;Lk;)V
intermediary <init>
Lnet/minecraft/class_1259$class_1260;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_124;)V
named <init>
Lnet/minecraft/entity/boss/BossBar$Color;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/util/Formatting;)V
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getTextFormat
- Mappings:
Namespace Name Mixin selector official a
Lapg$a;a()Lk;
intermediary method_5423
Lnet/minecraft/class_1259$class_1260;method_5423()Lnet/minecraft/class_124;
named getTextFormat
Lnet/minecraft/entity/boss/BossBar$Color;getTextFormat()Lnet/minecraft/util/Formatting;
-
getName
- Mappings:
Namespace Name Mixin selector official b
Lapg$a;b()Ljava/lang/String;
intermediary method_5421
Lnet/minecraft/class_1259$class_1260;method_5421()Ljava/lang/String;
named getName
Lnet/minecraft/entity/boss/BossBar$Color;getName()Ljava/lang/String;
-
byName
- Mappings:
Namespace Name Mixin selector official a
Lapg$a;a(Ljava/lang/String;)Lapg$a;
intermediary method_5422
Lnet/minecraft/class_1259$class_1260;method_5422(Ljava/lang/String;)Lnet/minecraft/class_1259$class_1260;
named byName
Lnet/minecraft/entity/boss/BossBar$Color;byName(Ljava/lang/String;)Lnet/minecraft/entity/boss/BossBar$Color;
-