public abstract static class GameRules.RuleValue<T extends GameRules.RuleValue<T>>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private GameRules.RuleType<T> |
type |
Constructor and Description |
---|
RuleValue(GameRules.RuleType<T> type) |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
getValue() |
abstract int |
intValue() |
protected void |
notifyChange(MinecraftServer server) |
protected abstract void |
setStringValue(java.lang.String valueIn) |
protected abstract java.lang.String |
stringValue() |
java.lang.String |
toString() |
void |
updateValue(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String paramName) |
protected abstract void |
updateValue0(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String paramName) |
private final GameRules.RuleType<T extends GameRules.RuleValue<T>> type
public RuleValue(GameRules.RuleType<T> type)
protected abstract void updateValue0(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String paramName)
public void updateValue(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String paramName)
protected void notifyChange(@Nullable MinecraftServer server)
protected abstract void setStringValue(java.lang.String valueIn)
protected abstract java.lang.String stringValue()
public java.lang.String toString()
toString
in class java.lang.Object
public abstract int intValue()
protected abstract T getValue()