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