类 GameRuleCommand
java.lang.Object
net.minecraft.server.commands.GameRuleCommand
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明(专用程序包) 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_, CommandBuildContext p_373017_) (专用程序包) static <T extends GameRules.Value<T>>
intsetRule
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137755_, GameRules.Key<T> p_137756_)
-
构造器详细资料
-
GameRuleCommand
public GameRuleCommand()
-
-
方法详细资料
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_137745_, CommandBuildContext p_373017_) -
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_)
-