Enum Class MaterialColor.Brightness
java.lang.Object
java.lang.Enum<MaterialColor.Brightness>
net.minecraft.world.level.material.MaterialColor.Brightness
- All Implemented Interfaces:
Serializable
,Comparable<MaterialColor.Brightness>
,Constable
- Enclosing class:
- MaterialColor
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionfinal int
final int
private static final MaterialColor.Brightness[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MaterialColor.Brightness
byId
(int p_192945_) (package private) static MaterialColor.Brightness
byIdUnsafe
(int p_192947_) static MaterialColor.Brightness
Returns the enum constant of this class with the specified name.static MaterialColor.Brightness[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOW
-
NORMAL
-
HIGH
-
LOWEST
-
-
Field Details
-
VALUES
-
id
public final int id -
modifier
public final int modifier
-
-
Constructor Details
-
Brightness
private Brightness(int p_192941_, int p_192942_)
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
byId
-
byIdUnsafe
-