Package net.minecraft.server.commands
Class GameRuleCommand
java.lang.Object
net.minecraft.server.commands.GameRuleCommand
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) static <T extends GameRules.Value<T>>
intqueryRule(CommandSourceStack p_137758_, GameRules.Key<T> p_137759_)
static void
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_137745_)
(package private) static <T extends GameRules.Value<T>>
intsetRule(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137755_, GameRules.Key<T> p_137756_)
-
Constructor Details
-
GameRuleCommand
public GameRuleCommand()
-
-
Method Details
-
register
-
setRule
static <T extends GameRules.Value<T>> int setRule(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137755_, GameRules.Key<T> p_137756_) -
queryRule
static <T extends GameRules.Value<T>> int queryRule(CommandSourceStack p_137758_, GameRules.Key<T> p_137759_)
-