Package net.minecraft.util
Enum Class Util.OperatingSystem
- All Implemented Interfaces:
Serializable,Comparable<Util.OperatingSystem>,Constable
- Enclosing class:
Util
An enum representing the operating system of the current platform.
This defines the behavior for opening links.
The current one can be obtained via
Util.getOperatingSystem().- Mappings:
Namespace Name named net/minecraft/util/Util$OperatingSystemintermediary net/minecraft/class_156$class_158official ag$a
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()protected String[]getURIOpenCommand(URI uri) voidOpensfile.voidOpensuri.voidOpensuri.voidstatic Util.OperatingSystemReturns the enum constant of this class with the specified name.static Util.OperatingSystem[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LINUX
- Mappings:
Namespace Name Mixin selector named LINUXLnet/minecraft/util/Util$OperatingSystem;LINUX:Lnet/minecraft/util/Util$OperatingSystem;intermediary field_1135Lnet/minecraft/class_156$class_158;field_1135:Lnet/minecraft/class_156$class_158;official aLag$a;a:Lag$a;
-
SOLARIS
- Mappings:
Namespace Name Mixin selector named SOLARISLnet/minecraft/util/Util$OperatingSystem;SOLARIS:Lnet/minecraft/util/Util$OperatingSystem;intermediary field_1134Lnet/minecraft/class_156$class_158;field_1134:Lnet/minecraft/class_156$class_158;official bLag$a;b:Lag$a;
-
WINDOWS
- Mappings:
Namespace Name Mixin selector named WINDOWSLnet/minecraft/util/Util$OperatingSystem;WINDOWS:Lnet/minecraft/util/Util$OperatingSystem;intermediary field_1133Lnet/minecraft/class_156$class_158;field_1133:Lnet/minecraft/class_156$class_158;official cLag$a;c:Lag$a;
-
OSX
- Mappings:
Namespace Name Mixin selector named OSXLnet/minecraft/util/Util$OperatingSystem;OSX:Lnet/minecraft/util/Util$OperatingSystem;intermediary field_1137Lnet/minecraft/class_156$class_158;field_1137:Lnet/minecraft/class_156$class_158;official dLag$a;d:Lag$a;
-
UNKNOWN
- Mappings:
Namespace Name Mixin selector named UNKNOWNLnet/minecraft/util/Util$OperatingSystem;UNKNOWN:Lnet/minecraft/util/Util$OperatingSystem;intermediary field_1132Lnet/minecraft/class_156$class_158;field_1132:Lnet/minecraft/class_156$class_158;official eLag$a;e:Lag$a;
-
-
Field Details
-
name
- Mappings:
Namespace Name Mixin selector named nameLnet/minecraft/util/Util$OperatingSystem;name:Ljava/lang/String;intermediary field_34894Lnet/minecraft/class_156$class_158;field_34894:Ljava/lang/String;official fLag$a;f:Ljava/lang/String;
-
-
Constructor Details
-
OperatingSystem
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/util/Util$OperatingSystem;<init>(Ljava/lang/String;ILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_156$class_158;<init>(Ljava/lang/String;ILjava/lang/String;)Vofficial <init>Lag$a;<init>(Ljava/lang/String;ILjava/lang/String;)V
-
-
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
-
open
Opensuri. If this points to an HTTP(S) URI, it is usually opened using the system's default browser. Otherwise, it is opened directly.Always validate the passed URI's schema as some values can execute code.
- Mappings:
Namespace Name Mixin selector named openLnet/minecraft/util/Util$OperatingSystem;open(Ljava/net/URI;)Vintermediary method_673Lnet/minecraft/class_156$class_158;method_673(Ljava/net/URI;)Vofficial aLag$a;a(Ljava/net/URI;)V
-
open
Opensfile.Do not pass untrusted file to this method as some values can execute code.
- Mappings:
Namespace Name Mixin selector named openLnet/minecraft/util/Util$OperatingSystem;open(Ljava/io/File;)Vintermediary method_672Lnet/minecraft/class_156$class_158;method_672(Ljava/io/File;)Vofficial aLag$a;a(Ljava/io/File;)V
-
open
- Mappings:
Namespace Name Mixin selector named openLnet/minecraft/util/Util$OperatingSystem;open(Ljava/nio/file/Path;)Vintermediary method_60932Lnet/minecraft/class_156$class_158;method_60932(Ljava/nio/file/Path;)Vofficial aLag$a;a(Ljava/nio/file/Path;)V
-
getURIOpenCommand
- Mappings:
Namespace Name Mixin selector named getURIOpenCommandLnet/minecraft/util/Util$OperatingSystem;getURIOpenCommand(Ljava/net/URI;)[Ljava/lang/String;intermediary method_674Lnet/minecraft/class_156$class_158;method_674(Ljava/net/URI;)[Ljava/lang/String;official bLag$a;b(Ljava/net/URI;)[Ljava/lang/String;
-
open
Opensuri. If this points to an HTTP(S) URI, it is usually opened using the system's default browser. Otherwise, it is opened directly.Always validate the passed URI's schema as some values can execute code.
- Mappings:
Namespace Name Mixin selector named openLnet/minecraft/util/Util$OperatingSystem;open(Ljava/lang/String;)Vintermediary method_670Lnet/minecraft/class_156$class_158;method_670(Ljava/lang/String;)Vofficial aLag$a;a(Ljava/lang/String;)V
-
getName
- Mappings:
Namespace Name Mixin selector named getNameLnet/minecraft/util/Util$OperatingSystem;getName()Ljava/lang/String;intermediary method_38649Lnet/minecraft/class_156$class_158;method_38649()Ljava/lang/String;official aLag$a;a()Ljava/lang/String;
-