Package net.minecraft.util
Enum Util.OS
- java.lang.Object
-
- java.lang.Enum<Util.OS>
-
- net.minecraft.util.Util.OS
-
-
Constructor Summary
Constructors Modifier Constructor Description private
OS()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String[]
getOpenUrlArguments(java.net.URL p_195643_1_)
void
openFile(java.io.File p_195641_1_)
void
openUri(java.lang.String p_195640_1_)
void
openUri(java.net.URI p_195642_1_)
void
openUrl(java.net.URL p_195639_1_)
static Util.OS
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Util.OS[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static Util.OS[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Util.OS c : Util.OS.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Util.OS valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
openUrl
public void openUrl(java.net.URL p_195639_1_)
-
openUri
public void openUri(java.net.URI p_195642_1_)
-
openFile
public void openFile(java.io.File p_195641_1_)
-
getOpenUrlArguments
protected java.lang.String[] getOpenUrlArguments(java.net.URL p_195643_1_)
-
openUri
public void openUri(java.lang.String p_195640_1_)
-
-