public class GameRuleCommand extends Object
Constructor and Description |
---|
GameRuleCommand() |
Modifier and Type | Method and Description |
---|---|
private static <T extends GameRules.Rule<T>> |
executeQuery(ServerCommandSource source,
GameRules.Key<T> key) |
private static <T extends GameRules.Rule<T>> |
executeSet(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
GameRules.Key<T> key) |
static void |
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) |
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
private static <T extends GameRules.Rule<T>> int executeSet(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, GameRules.Key<T> key)
private static <T extends GameRules.Rule<T>> int executeQuery(ServerCommandSource source, GameRules.Key<T> key)