Package net.minecraft.world.border
Enum WorldBorderStage
- All Implemented Interfaces:
Serializable,Comparable<WorldBorderStage>,java.lang.constant.Constable
@Environment(CLIENT) public enum WorldBorderStage extends Enum<WorldBorderStage>
- Mappings:
Namespace Name official ckbintermediary net/minecraft/class_2789named net/minecraft/world/border/WorldBorderStage
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description GROWINGSHRINKINGSTATIONARY -
Field Summary
Fields Modifier and Type Field Description private intcolor -
Constructor Summary
Constructors Modifier Constructor Description privateWorldBorderStage(int color) -
Method Summary
Modifier and Type Method Description intgetColor()static WorldBorderStagevalueOf(String name)Returns the enum constant of this type with the specified name.static WorldBorderStage[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
GROWING
- Mappings:
Namespace Name Mixin selector official aLckb;a:Lckb;intermediary field_12754Lnet/minecraft/class_2789;field_12754:Lnet/minecraft/class_2789;named GROWINGLnet/minecraft/world/border/WorldBorderStage;GROWING:Lnet/minecraft/world/border/WorldBorderStage;
-
SHRINKING
- Mappings:
Namespace Name Mixin selector official bLckb;b:Lckb;intermediary field_12756Lnet/minecraft/class_2789;field_12756:Lnet/minecraft/class_2789;named SHRINKINGLnet/minecraft/world/border/WorldBorderStage;SHRINKING:Lnet/minecraft/world/border/WorldBorderStage;
-
STATIONARY
- Mappings:
Namespace Name Mixin selector official cLckb;c:Lckb;intermediary field_12753Lnet/minecraft/class_2789;field_12753:Lnet/minecraft/class_2789;named STATIONARYLnet/minecraft/world/border/WorldBorderStage;STATIONARY:Lnet/minecraft/world/border/WorldBorderStage;
-
-
Field Details
-
color
private final int color- Mappings:
Namespace Name Mixin selector official dLckb;d:Iintermediary field_12755Lnet/minecraft/class_2789;field_12755:Inamed colorLnet/minecraft/world/border/WorldBorderStage;color:I
-
-
Constructor Details
-
WorldBorderStage
private WorldBorderStage(int color)- Mappings:
Namespace Name Mixin selector official <init>Lckb;<init>(Ljava/lang/String;II)Vintermediary <init>Lnet/minecraft/class_2789;<init>(Ljava/lang/String;II)Vnamed <init>Lnet/minecraft/world/border/WorldBorderStage;<init>(Ljava/lang/String;II)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
-
getColor
public int getColor()- Mappings:
Namespace Name Mixin selector official aLckb;a()Iintermediary method_11999Lnet/minecraft/class_2789;method_11999()Inamed getColorLnet/minecraft/world/border/WorldBorderStage;getColor()I
-