Package net.minecraft.server.commands
Class GameRuleCommand
java.lang.Object
net.minecraft.server.commands.GameRuleCommand
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription(package private) static <T extends GameRules.Value<T>>
 intqueryRule(CommandSourceStack p_137758_, GameRules.Key<T> p_137759_) static voidregister(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- 
GameRuleCommandpublic GameRuleCommand()
 
- 
- 
Method Details- 
register
- 
setRulestatic <T extends GameRules.Value<T>> int setRule(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137755_, GameRules.Key<T> p_137756_) 
- 
queryRulestatic <T extends GameRules.Value<T>> int queryRule(CommandSourceStack p_137758_, GameRules.Key<T> p_137759_) 
 
-