public abstract static class GameRules.Rule<T extends GameRules.Rule<T>> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected GameRules.RuleType<T> |
type |
| Constructor and Description |
|---|
Rule(GameRules.RuleType<T> type) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
changed(MinecraftServer server) |
protected abstract void |
deserialize(String value) |
abstract int |
getCommandResult() |
protected abstract T |
getThis() |
abstract void |
method_27337(T t,
MinecraftServer minecraftServer) |
protected abstract T |
method_27338() |
abstract String |
serialize() |
void |
set(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
String name) |
protected abstract void |
setFromArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
String name) |
String |
toString() |
protected final GameRules.RuleType<T extends GameRules.Rule<T>> type
public Rule(GameRules.RuleType<T> type)
protected abstract void setFromArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public void set(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
protected void changed(@Nullable MinecraftServer server)
protected abstract void deserialize(String value)
public abstract String serialize()
public abstract int getCommandResult()
protected abstract T getThis()
protected abstract T method_27338()
public abstract void method_27337(T t, @Nullable MinecraftServer minecraftServer)