Package net.minecraft.server.command
Enum Class CommandManager.RegistrationEnvironment
java.lang.Object
java.lang.Enum<CommandManager.RegistrationEnvironment>
net.minecraft.server.command.CommandManager.RegistrationEnvironment
- All Implemented Interfaces:
Serializable,Comparable<CommandManager.RegistrationEnvironment>,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 dt$aintermediary net/minecraft/class_2170$class_5364named 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 -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final boolean(package private) final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateRegistrationEnvironment(boolean integrated, boolean dedicated) -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL
- Mappings:
Namespace Name Mixin selector official aLdt$a;a:Ldt$a;intermediary field_25419Lnet/minecraft/class_2170$class_5364;field_25419:Lnet/minecraft/class_2170$class_5364;named ALLLnet/minecraft/server/command/CommandManager$RegistrationEnvironment;ALL:Lnet/minecraft/server/command/CommandManager$RegistrationEnvironment;
-
DEDICATED
- Mappings:
Namespace Name Mixin selector official bLdt$a;b:Ldt$a;intermediary field_25420Lnet/minecraft/class_2170$class_5364;field_25420:Lnet/minecraft/class_2170$class_5364;named DEDICATEDLnet/minecraft/server/command/CommandManager$RegistrationEnvironment;DEDICATED:Lnet/minecraft/server/command/CommandManager$RegistrationEnvironment;
-
INTEGRATED
- Mappings:
Namespace Name Mixin selector official cLdt$a;c:Ldt$a;intermediary field_25421Lnet/minecraft/class_2170$class_5364;field_25421:Lnet/minecraft/class_2170$class_5364;named INTEGRATEDLnet/minecraft/server/command/CommandManager$RegistrationEnvironment;INTEGRATED:Lnet/minecraft/server/command/CommandManager$RegistrationEnvironment;
-
-
Field Details
-
integrated
final boolean integrated- Mappings:
Namespace Name Mixin selector official dLdt$a;d:Zintermediary field_25422Lnet/minecraft/class_2170$class_5364;field_25422:Znamed integratedLnet/minecraft/server/command/CommandManager$RegistrationEnvironment;integrated:Z
-
dedicated
final boolean dedicated- Mappings:
Namespace Name Mixin selector official eLdt$a;e:Zintermediary field_25423Lnet/minecraft/class_2170$class_5364;field_25423:Znamed dedicatedLnet/minecraft/server/command/CommandManager$RegistrationEnvironment;dedicated:Z
-
-
Constructor Details
-
RegistrationEnvironment
private RegistrationEnvironment(boolean integrated, boolean dedicated) - Mappings:
Namespace Name Mixin selector official <init>Ldt$a;<init>(Ljava/lang/String;IZZ)Vintermediary <init>Lnet/minecraft/class_2170$class_5364;<init>(Ljava/lang/String;IZZ)Vnamed <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 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
-