public class SlimefunBlock
extends java.lang.Object
Constructor and Description |
---|
SlimefunBlock(java.lang.String id) |
SlimefunBlock(java.lang.String id,
com.google.gson.JsonObject data) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.Boolean> |
getBoolean(java.lang.String key) |
boolean |
getBoolean(java.lang.String key,
boolean defaultValue) |
java.util.Optional<java.lang.Boolean[]> |
getBooleanArray(java.lang.String key) |
java.util.Optional<java.lang.Float> |
getFloat(java.lang.String key) |
float |
getFloat(java.lang.String key,
float defaultValue) |
java.util.Optional<java.lang.Float[]> |
getFloatArray(java.lang.String key) |
java.lang.String |
getID() |
java.util.Optional<java.lang.Integer> |
getInt(java.lang.String key) |
int |
getInt(java.lang.String key,
int defaultValue) |
java.util.Optional<java.lang.Integer[]> |
getIntArray(java.lang.String key) |
java.util.Optional<java.lang.String> |
getString(java.lang.String key) |
java.lang.String |
getString(java.lang.String key,
java.lang.String defaultValue) |
java.util.Optional<java.lang.String[]> |
getStringArray(java.lang.String key) |
boolean |
isDirty() |
void |
markClean() |
void |
markDirty() |
void |
setBoolean(java.lang.String key,
boolean value) |
void |
setBooleanArray(java.lang.String key,
boolean[] array) |
void |
setFloat(java.lang.String key,
float value) |
void |
setFloatArray(java.lang.String key,
float[] array) |
void |
setInt(java.lang.String key,
int value) |
void |
setIntArray(java.lang.String key,
int[] array) |
void |
setString(java.lang.String key,
java.lang.String value) |
void |
setStringArray(java.lang.String key,
java.lang.String[] array) |
public SlimefunBlock(java.lang.String id)
public SlimefunBlock(java.lang.String id, com.google.gson.JsonObject data)
public java.lang.String getID()
public void markDirty()
public void markClean()
public boolean isDirty()
public void setString(java.lang.String key, java.lang.String value)
public void setInt(java.lang.String key, int value)
public void setBoolean(java.lang.String key, boolean value)
public void setFloat(java.lang.String key, float value)
public void setStringArray(java.lang.String key, java.lang.String[] array)
public void setIntArray(java.lang.String key, int[] array)
public void setBooleanArray(java.lang.String key, boolean[] array)
public void setFloatArray(java.lang.String key, float[] array)
public java.util.Optional<java.lang.String> getString(java.lang.String key)
public java.lang.String getString(java.lang.String key, java.lang.String defaultValue)
public java.util.Optional<java.lang.Integer> getInt(java.lang.String key)
public int getInt(java.lang.String key, int defaultValue)
public java.util.Optional<java.lang.Boolean> getBoolean(java.lang.String key)
public boolean getBoolean(java.lang.String key, boolean defaultValue)
public java.util.Optional<java.lang.Float> getFloat(java.lang.String key)
public float getFloat(java.lang.String key, float defaultValue)
public java.util.Optional<java.lang.String[]> getStringArray(java.lang.String key)
public java.util.Optional<java.lang.Integer[]> getIntArray(java.lang.String key)
public java.util.Optional<java.lang.Boolean[]> getBooleanArray(java.lang.String key)
public java.util.Optional<java.lang.Float[]> getFloatArray(java.lang.String key)