public static class GameRules.IntegerValue extends GameRules.RuleValue<GameRules.IntegerValue>
Modifier and Type | Field and Description |
---|---|
private int |
value |
Constructor and Description |
---|
IntegerValue(GameRules.RuleType<GameRules.IntegerValue> type,
int defaultValue) |
Modifier and Type | Method and Description |
---|---|
private static GameRules.RuleType<GameRules.IntegerValue> |
create(int defaultValue) |
private static GameRules.RuleType<GameRules.IntegerValue> |
create(int defaultValue,
java.util.function.BiConsumer<MinecraftServer,GameRules.IntegerValue> changeListener) |
int |
get() |
protected GameRules.IntegerValue |
getValue() |
int |
intValue() |
private static int |
parseInt(java.lang.String strValue) |
protected void |
setStringValue(java.lang.String valueIn) |
protected java.lang.String |
stringValue() |
protected void |
updateValue0(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String paramName) |
notifyChange, toString, updateValue
public IntegerValue(GameRules.RuleType<GameRules.IntegerValue> type, int defaultValue)
private static GameRules.RuleType<GameRules.IntegerValue> create(int defaultValue, java.util.function.BiConsumer<MinecraftServer,GameRules.IntegerValue> changeListener)
private static GameRules.RuleType<GameRules.IntegerValue> create(int defaultValue)
protected void updateValue0(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String paramName)
updateValue0
in class GameRules.RuleValue<GameRules.IntegerValue>
public int get()
protected java.lang.String stringValue()
stringValue
in class GameRules.RuleValue<GameRules.IntegerValue>
protected void setStringValue(java.lang.String valueIn)
setStringValue
in class GameRules.RuleValue<GameRules.IntegerValue>
private static int parseInt(java.lang.String strValue)
public int intValue()
intValue
in class GameRules.RuleValue<GameRules.IntegerValue>
protected GameRules.IntegerValue getValue()
getValue
in class GameRules.RuleValue<GameRules.IntegerValue>