public static class GameRules.RuleType<T extends GameRules.RuleValue<T>>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.function.Supplier<com.mojang.brigadier.arguments.ArgumentType<?>> |
argTypeSupplier |
private java.util.function.BiConsumer<MinecraftServer,T> |
changeListener |
private java.util.function.Function<GameRules.RuleType<T>,T> |
valueCreator |
Modifier | Constructor and Description |
---|---|
private |
RuleType(java.util.function.Supplier<com.mojang.brigadier.arguments.ArgumentType<?>> argTypeSupplier,
java.util.function.Function<GameRules.RuleType<T>,T> valueCreator,
java.util.function.BiConsumer<MinecraftServer,T> changeListener) |
Modifier and Type | Method and Description |
---|---|
com.mojang.brigadier.builder.RequiredArgumentBuilder<CommandSource,?> |
createArgument(java.lang.String name) |
T |
createValue() |
private final java.util.function.Supplier<com.mojang.brigadier.arguments.ArgumentType<?>> argTypeSupplier
private final java.util.function.Function<GameRules.RuleType<T extends GameRules.RuleValue<T>>,T extends GameRules.RuleValue<T>> valueCreator
private final java.util.function.BiConsumer<MinecraftServer,T extends GameRules.RuleValue<T>> changeListener
private RuleType(java.util.function.Supplier<com.mojang.brigadier.arguments.ArgumentType<?>> argTypeSupplier, java.util.function.Function<GameRules.RuleType<T>,T> valueCreator, java.util.function.BiConsumer<MinecraftServer,T> changeListener)
public com.mojang.brigadier.builder.RequiredArgumentBuilder<CommandSource,?> createArgument(java.lang.String name)
public T createValue()