Package net.minecraft.world
Enum Class GameRuleManager.VariableType
- All Implemented Interfaces:
Serializable,Comparable<GameRuleManager.VariableType>,Constable
- Enclosing class:
- GameRuleManager
- Mappings:
Namespace Name official axu$cintermediary net/minecraft/class_1439$class_2166named net/minecraft/world/GameRuleManager$VariableType
-
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 TypeFieldDescriptionprivate final Supplier<com.mojang.brigadier.arguments.ArgumentType<?>>private final BiFunction<com.mojang.brigadier.context.CommandContext<class_3915>,String, String> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateVariableType(Supplier<com.mojang.brigadier.arguments.ArgumentType<?>> supplier, BiFunction<com.mojang.brigadier.context.CommandContext<class_3915>, String, String> biFunction) -
Method Summary
Modifier and TypeMethodDescriptionvoidmethod_16307(com.mojang.brigadier.context.CommandContext<class_3915> commandContext, String string, GameRuleManager.Value value) com.mojang.brigadier.builder.RequiredArgumentBuilder<class_3915,?> method_16308(String string) static GameRuleManager.VariableTypeReturns the enum constant of this class with the specified name.static GameRuleManager.VariableType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANY_VALUE
- Mappings:
Namespace Name Mixin selector official aLaxu$c;a:Laxu$c;intermediary field_17496Lnet/minecraft/class_1439$class_2166;field_17496:Lnet/minecraft/class_1439$class_2166;named ANY_VALUELnet/minecraft/world/GameRuleManager$VariableType;ANY_VALUE:Lnet/minecraft/world/GameRuleManager$VariableType;
-
BOOLEAN_VALUE
- Mappings:
Namespace Name Mixin selector official bLaxu$c;b:Laxu$c;intermediary field_17497Lnet/minecraft/class_1439$class_2166;field_17497:Lnet/minecraft/class_1439$class_2166;named BOOLEAN_VALUELnet/minecraft/world/GameRuleManager$VariableType;BOOLEAN_VALUE:Lnet/minecraft/world/GameRuleManager$VariableType;
-
NUMERICAL_VALUE
- Mappings:
Namespace Name Mixin selector official cLaxu$c;c:Laxu$c;intermediary field_17498Lnet/minecraft/class_1439$class_2166;field_17498:Lnet/minecraft/class_1439$class_2166;named NUMERICAL_VALUELnet/minecraft/world/GameRuleManager$VariableType;NUMERICAL_VALUE:Lnet/minecraft/world/GameRuleManager$VariableType;
-
-
Field Details
-
field_17499
- Mappings:
Namespace Name Mixin selector official dLaxu$c;d:Ljava/util/function/Supplier;intermediary field_17499Lnet/minecraft/class_1439$class_2166;field_17499:Ljava/util/function/Supplier;named field_17499Lnet/minecraft/world/GameRuleManager$VariableType;field_17499:Ljava/util/function/Supplier;
-
field_17500
private final BiFunction<com.mojang.brigadier.context.CommandContext<class_3915>,String, field_17500String> - Mappings:
Namespace Name Mixin selector official eLaxu$c;e:Ljava/util/function/BiFunction;intermediary field_17500Lnet/minecraft/class_1439$class_2166;field_17500:Ljava/util/function/BiFunction;named field_17500Lnet/minecraft/world/GameRuleManager$VariableType;field_17500:Ljava/util/function/BiFunction;
-
-
Constructor Details
-
VariableType
private VariableType(Supplier<com.mojang.brigadier.arguments.ArgumentType<?>> supplier, BiFunction<com.mojang.brigadier.context.CommandContext<class_3915>, String, String> biFunction)
-
-
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
-
method_16308
public com.mojang.brigadier.builder.RequiredArgumentBuilder<class_3915,?> method_16308(String string) - Mappings:
Namespace Name Mixin selector official aLaxu$c;a(Ljava/lang/String;)Lcom/mojang/brigadier/builder/RequiredArgumentBuilder;intermediary method_16308Lnet/minecraft/class_1439$class_2166;method_16308(Ljava/lang/String;)Lcom/mojang/brigadier/builder/RequiredArgumentBuilder;named method_16308Lnet/minecraft/world/GameRuleManager$VariableType;method_16308(Ljava/lang/String;)Lcom/mojang/brigadier/builder/RequiredArgumentBuilder;
-
method_16307
public void method_16307(com.mojang.brigadier.context.CommandContext<class_3915> commandContext, String string, GameRuleManager.Value value) - Mappings:
Namespace Name Mixin selector official aLaxu$c;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Laxu$a;)Vintermediary method_16307Lnet/minecraft/class_1439$class_2166;method_16307(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/class_1439$class_1440;)Vnamed method_16307Lnet/minecraft/world/GameRuleManager$VariableType;method_16307(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/world/GameRuleManager$Value;)V
-