Package net.minecraft.server.command
Enum CommandManager.RegistrationEnvironment
java.lang.Object
java.lang.Enum<CommandManager.RegistrationEnvironment>
net.minecraft.server.command.CommandManager.RegistrationEnvironment
- All Implemented Interfaces:
Serializable
,Comparable<CommandManager.RegistrationEnvironment>
,java.lang.constant.Constable
- Enclosing class:
- CommandManager
public static enum CommandManager.RegistrationEnvironment extends Enum<CommandManager.RegistrationEnvironment>
Describes the environment in which commands are registered.
- Mappings:
Namespace Name official dc$a
intermediary net/minecraft/class_2170$class_5364
named net/minecraft/server/command/CommandManager$RegistrationEnvironment
-
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 ALL
DEDICATED
INTEGRATED
-
Field Summary
Fields Modifier and Type Field Description private boolean
dedicated
private boolean
integrated
-
Constructor Summary
Constructors Modifier Constructor Description private
RegistrationEnvironment(boolean integrated, boolean dedicated)
-
Method Summary
Modifier and Type Method Description static CommandManager.RegistrationEnvironment
valueOf(String name)
Returns the enum constant of this type with the specified name.static CommandManager.RegistrationEnvironment[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ALL
- Mappings:
Namespace Name Mixin selector official a
Ldc$a;a:Ldc$a;
intermediary field_25419
Lnet/minecraft/class_2170$class_5364;field_25419:Lnet/minecraft/class_2170$class_5364;
named ALL
Lnet/minecraft/server/command/CommandManager$RegistrationEnvironment;ALL:Lnet/minecraft/server/command/CommandManager$RegistrationEnvironment;
-
DEDICATED
- Mappings:
Namespace Name Mixin selector official b
Ldc$a;b:Ldc$a;
intermediary field_25420
Lnet/minecraft/class_2170$class_5364;field_25420:Lnet/minecraft/class_2170$class_5364;
named DEDICATED
Lnet/minecraft/server/command/CommandManager$RegistrationEnvironment;DEDICATED:Lnet/minecraft/server/command/CommandManager$RegistrationEnvironment;
-
INTEGRATED
- Mappings:
Namespace Name Mixin selector official c
Ldc$a;c:Ldc$a;
intermediary field_25421
Lnet/minecraft/class_2170$class_5364;field_25421:Lnet/minecraft/class_2170$class_5364;
named INTEGRATED
Lnet/minecraft/server/command/CommandManager$RegistrationEnvironment;INTEGRATED:Lnet/minecraft/server/command/CommandManager$RegistrationEnvironment;
-
-
Field Details
-
integrated
private final boolean integrated- Mappings:
Namespace Name Mixin selector official d
Ldc$a;d:Z
intermediary field_25422
Lnet/minecraft/class_2170$class_5364;field_25422:Z
named integrated
Lnet/minecraft/server/command/CommandManager$RegistrationEnvironment;integrated:Z
-
dedicated
private final boolean dedicated- Mappings:
Namespace Name Mixin selector official e
Ldc$a;e:Z
intermediary field_25423
Lnet/minecraft/class_2170$class_5364;field_25423:Z
named dedicated
Lnet/minecraft/server/command/CommandManager$RegistrationEnvironment;dedicated:Z
-
-
Constructor Details
-
RegistrationEnvironment
private RegistrationEnvironment(boolean integrated, boolean dedicated)- Mappings:
Namespace Name Mixin selector official <init>
Ldc$a;<init>(Ljava/lang/String;IZZ)V
intermediary <init>
Lnet/minecraft/class_2170$class_5364;<init>(Ljava/lang/String;IZZ)V
named <init>
Lnet/minecraft/server/command/CommandManager$RegistrationEnvironment;<init>(Ljava/lang/String;IZZ)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
-