Package net.minecraft.command.impl
Class GameRuleCommand
java.lang.Object
net.minecraft.command.impl.GameRuleCommand
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static <T extends GameRules.RuleValue<T>>
intqueryRule
(CommandSource p_223486_0_, GameRules.RuleKey<T> p_223486_1_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198487_0_) private static <T extends GameRules.RuleValue<T>>
intsetRule
(com.mojang.brigadier.context.CommandContext<CommandSource> p_223485_0_, GameRules.RuleKey<T> p_223485_1_)
-
Constructor Details
-
GameRuleCommand
public GameRuleCommand()
-
-
Method Details
-
register
-
setRule
private static <T extends GameRules.RuleValue<T>> int setRule(com.mojang.brigadier.context.CommandContext<CommandSource> p_223485_0_, GameRules.RuleKey<T> p_223485_1_) -
queryRule
private static <T extends GameRules.RuleValue<T>> int queryRule(CommandSource p_223486_0_, GameRules.RuleKey<T> p_223486_1_)
-