Enum Class PlatformName
- All Implemented Interfaces:
Serializable, Comparable<PlatformName>, Constable
All valid platforms that are commonly use in Minecraft modding that you can use with your mod. If you are coding a mod on multiple platforms, make sure each of your platforms return the correct platform id.
- Since:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanfabric()booleanforge()booleanneoforge()booleanother()static PlatformNameReturns the enum constant of this class with the specified name.static PlatformName[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FABRIC
-
NEOFORGE
-
FORGE
-
OTHER
-
-
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
-
fabric
public boolean fabric() -
neoforge
public boolean neoforge() -
forge
public boolean forge() -
other
public boolean other()
-