public static class GameRules.Value
extends java.lang.Object
Constructor and Description |
---|
Value(java.lang.String stringValue,
GameRules.ValueType typeIn,
java.util.function.BiConsumer<MinecraftServer,GameRules.Value> callback) |
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean() |
int |
getInt() |
java.lang.String |
getString() |
GameRules.ValueType |
getType() |
void |
setValue(java.lang.String stringValue,
MinecraftServer server) |
public Value(java.lang.String stringValue, GameRules.ValueType typeIn, java.util.function.BiConsumer<MinecraftServer,GameRules.Value> callback)
public void setValue(java.lang.String stringValue, @Nullable MinecraftServer server)
public java.lang.String getString()
public boolean getBoolean()
public int getInt()
public GameRules.ValueType getType()