Package net.minecraft.world
Class GameRules.RuleType<T extends GameRules.RuleValue<T>>
- java.lang.Object
-
- net.minecraft.world.GameRules.RuleType<T>
-
- Enclosing class:
- GameRules
public static class GameRules.RuleType<T extends GameRules.RuleValue<T>> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.Supplier<com.mojang.brigadier.arguments.ArgumentType<?>>
argument
private java.util.function.BiConsumer<MinecraftServer,T>
callback
private java.util.function.Function<GameRules.RuleType<T>,T>
constructor
private GameRules.IRule<T>
visitorCaller
-
Constructor Summary
Constructors Modifier Constructor Description private
RuleType(java.util.function.Supplier<com.mojang.brigadier.arguments.ArgumentType<?>> p_i231615_1_, java.util.function.Function<GameRules.RuleType<T>,T> p_i231615_2_, java.util.function.BiConsumer<MinecraftServer,T> p_i231615_3_, GameRules.IRule<T> p_i231615_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
callVisitor(GameRules.IRuleEntryVisitor p_234914_1_, GameRules.RuleKey<T> p_234914_2_)
com.mojang.brigadier.builder.RequiredArgumentBuilder<CommandSource,?>
createArgument(java.lang.String p_223581_1_)
T
createRule()
-
-
-
Field Detail
-
argument
private final java.util.function.Supplier<com.mojang.brigadier.arguments.ArgumentType<?>> argument
-
constructor
private final java.util.function.Function<GameRules.RuleType<T extends GameRules.RuleValue<T>>,T extends GameRules.RuleValue<T>> constructor
-
callback
private final java.util.function.BiConsumer<MinecraftServer,T extends GameRules.RuleValue<T>> callback
-
visitorCaller
private final GameRules.IRule<T extends GameRules.RuleValue<T>> visitorCaller
-
-
Constructor Detail
-
RuleType
private RuleType(java.util.function.Supplier<com.mojang.brigadier.arguments.ArgumentType<?>> p_i231615_1_, java.util.function.Function<GameRules.RuleType<T>,T> p_i231615_2_, java.util.function.BiConsumer<MinecraftServer,T> p_i231615_3_, GameRules.IRule<T> p_i231615_4_)
-
-
Method Detail
-
createArgument
public com.mojang.brigadier.builder.RequiredArgumentBuilder<CommandSource,?> createArgument(java.lang.String p_223581_1_)
-
createRule
public T createRule()
-
callVisitor
public void callVisitor(GameRules.IRuleEntryVisitor p_234914_1_, GameRules.RuleKey<T> p_234914_2_)
-
-