public static class GameRules.BooleanValue extends GameRules.RuleValue<GameRules.BooleanValue>
Modifier and Type | Field and Description |
---|---|
private boolean |
value |
Constructor and Description |
---|
BooleanValue(GameRules.RuleType<GameRules.BooleanValue> type,
boolean defaultValue) |
Modifier and Type | Method and Description |
---|---|
private static GameRules.RuleType<GameRules.BooleanValue> |
create(boolean defaultValue) |
private static GameRules.RuleType<GameRules.BooleanValue> |
create(boolean defaultValue,
java.util.function.BiConsumer<MinecraftServer,GameRules.BooleanValue> changeListener) |
boolean |
get() |
protected GameRules.BooleanValue |
getValue() |
int |
intValue() |
void |
set(boolean valueIn,
MinecraftServer server) |
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 BooleanValue(GameRules.RuleType<GameRules.BooleanValue> type, boolean defaultValue)
private static GameRules.RuleType<GameRules.BooleanValue> create(boolean defaultValue, java.util.function.BiConsumer<MinecraftServer,GameRules.BooleanValue> changeListener)
private static GameRules.RuleType<GameRules.BooleanValue> create(boolean defaultValue)
protected void updateValue0(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String paramName)
updateValue0
in class GameRules.RuleValue<GameRules.BooleanValue>
public boolean get()
public void set(boolean valueIn, @Nullable MinecraftServer server)
protected java.lang.String stringValue()
stringValue
in class GameRules.RuleValue<GameRules.BooleanValue>
protected void setStringValue(java.lang.String valueIn)
setStringValue
in class GameRules.RuleValue<GameRules.BooleanValue>
public int intValue()
intValue
in class GameRules.RuleValue<GameRules.BooleanValue>
protected GameRules.BooleanValue getValue()
getValue
in class GameRules.RuleValue<GameRules.BooleanValue>