类 GameRuleCommand
java.lang.Object
net.minecraft.server.commands.GameRuleCommand
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明(专用程序包) static <T extends GameRules.Value<T>>
intqueryRule
(CommandSourceStack pSource, GameRules.Key<T> pGameRule) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher) (专用程序包) static <T extends GameRules.Value<T>>
intsetRule
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pSource, GameRules.Key<T> pGameRule)
-
构造器详细资料
-
GameRuleCommand
public GameRuleCommand()
-
-
方法详细资料
-
register
-
setRule
static <T extends GameRules.Value<T>> int setRule(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pSource, GameRules.Key<T> pGameRule) -
queryRule
static <T extends GameRules.Value<T>> int queryRule(CommandSourceStack pSource, GameRules.Key<T> pGameRule)
-