public class DBFolder
extends java.lang.Object
Constructor and Description |
---|
DBFolder() |
Modifier and Type | Method and Description |
---|---|
void |
addNewDBFolderFromPacket(java.lang.String key)
DON'T USE THIS METHOD !
|
DBFolder |
copy() |
BlockPos |
getBlockPos(java.lang.String key)
Retrieves a BlockPos object using the specified key, or null if no such key was stored.
|
boolean |
getBoolean(java.lang.String key)
Retrieves a boolean value using the specified key, or false if no such key was stored.
|
byte |
getByte(java.lang.String key)
Retrieves a byte value using the specified key, or 0 if no such key was stored.
|
char |
getChar(java.lang.String key)
Retrieves a char value using the specified key, or char 0x00 if no such key was stored.
|
java.lang.String |
getDataType(int index) |
DBFolder |
getDBFolder(java.lang.String key)
Retrieves a DBFolder object using the specified key, or creates and stores a new if no such key was stored.
|
double |
getDouble(java.lang.String key)
Retrieves a double value using the specified key, or 0D if no such key was stored.
|
float |
getFloat(java.lang.String key)
Retrieves a float value using the specified key, or 0F if no such key was stored.
|
java.lang.String[] |
getHierarchy() |
int |
getInt(java.lang.String key)
Retrieves an int value using the specified key, or 0 if no such key was stored.
|
java.lang.String[] |
getKeys() |
long |
getLong(java.lang.String key)
Retrieves a long value using the specified key, or 0L if no such key was stored.
|
java.lang.String |
getName() |
short |
getShort(java.lang.String key)
Retrieves a short value using the specified key, or 0 if no such key was stored.
|
java.lang.String |
getString(java.lang.String key)
Retrieves a String object using the specified key, or "" if no such key was stored.
|
void |
printInConsole(boolean unicodeSuportedByTheConsole)
Print the content of the folder in the console.
|
void |
removeBlockPos(java.lang.String key)
Removes a BlockPos object using the specified key.
|
void |
removeBoolean(java.lang.String key)
Removes a boolean value using the specified key.
|
void |
removeByte(java.lang.String key)
Removes a byte value using the specified key.
|
void |
removeChar(java.lang.String key)
Removes a char value using the specified key.
|
void |
removeData(java.lang.String key,
java.lang.Class<? extends java.lang.Object> type,
boolean synchronizeOtherSide)
synchronized for avoid ConcurrentModificationException with dataArray and keysArray
|
void |
removeDBFolder(java.lang.String key)
Removes a DBFolder object using the specified key.
|
void |
removeDouble(java.lang.String key)
Removes a double value using the specified key.
|
void |
removeFloat(java.lang.String key)
Removes a float value using the specified key.
|
void |
removeInt(java.lang.String key)
Removes a int value using the specified key.
|
void |
removeLong(java.lang.String key)
Removes a long value using the specified key.
|
void |
removeShort(java.lang.String key)
Removes a short value using the specified key.
|
void |
removeString(java.lang.String key)
Removes a String object using the specified key.
|
void |
setBlockPos(java.lang.String key,
BlockPos value)
Stores the given BlockPos object using the given string key.
|
void |
setBoolean(java.lang.String key,
boolean value)
Stores the given boolean value using the given string key.
|
void |
setByte(java.lang.String key,
byte value)
Stores the given byte value using the given string key.
|
void |
setChar(java.lang.String key,
char value)
Stores the given char value using the given string key.
|
void |
setData(java.lang.String key,
java.lang.Object value,
java.lang.String valueStr,
boolean synchronizeTheOtherSide)
DON'T USE THIS METHOD !
|
void |
setDBFolder(java.lang.String key,
DBFolder value)
Stores the given DBFolder object using the given string key.
|
void |
setDouble(java.lang.String key,
double value)
Stores the given double value using the given string key.
|
void |
setFloat(java.lang.String key,
float value)
Stores the given float value using the given string key.
|
void |
setInt(java.lang.String key,
int value)
Stores the given int value using the given string key.
|
void |
setLong(java.lang.String key,
long value)
Stores the given long value using the given string key.
|
void |
setShort(java.lang.String key,
short value)
Stores the given short value using the given string key.
|
void |
setString(java.lang.String key,
java.lang.String value)
Stores the given String object using the given string key.
|
public java.lang.String[] getHierarchy()
public java.lang.String getName()
public java.lang.String[] getKeys()
public java.lang.String getDataType(int index)
public DBFolder copy()
public void printInConsole(boolean unicodeSuportedByTheConsole)
unicodeSuportedByTheConsole
- : Before set this true, make sure that your IDE's console support unicode characters.public void setBlockPos(java.lang.String key, BlockPos value)
java.lang.IllegalArgumentException
- if key is null or if it contains ':'java.lang.NullPointerException
- If value is null. Use removeBlockPos (String key) for remove a BlockPos.public void setBoolean(java.lang.String key, boolean value)
java.lang.IllegalArgumentException
- if key is null or if it contains ':'public void setByte(java.lang.String key, byte value)
java.lang.IllegalArgumentException
- if key is null or if it contains ':'public void setChar(java.lang.String key, char value)
java.lang.IllegalArgumentException
- if key is null or if it contains ':'public void setDBFolder(java.lang.String key, DBFolder value)
java.lang.IllegalArgumentException
- if key is null or if it contains ':'java.lang.NullPointerException
- If value is null. Use removeDBFolder (String key) for remove a DBFolder.public void addNewDBFolderFromPacket(java.lang.String key)
public void setDouble(java.lang.String key, double value)
java.lang.IllegalArgumentException
- if key is null or if it contains ':'public void setFloat(java.lang.String key, float value)
java.lang.IllegalArgumentException
- if key is null or if it contains ':'public void setInt(java.lang.String key, int value)
java.lang.IllegalArgumentException
- if key is null or if it contains ':'public void setLong(java.lang.String key, long value)
java.lang.IllegalArgumentException
- if key is null or if it contains ':'public void setShort(java.lang.String key, short value)
java.lang.IllegalArgumentException
- if key is null or if it contains ':'public void setString(java.lang.String key, java.lang.String value)
java.lang.IllegalArgumentException
- if key is null or if it contains ':'java.lang.NullPointerException
- If value is null. Use removeString (String key) for remove a String.public void setData(java.lang.String key, java.lang.Object value, java.lang.String valueStr, boolean synchronizeTheOtherSide)
public BlockPos getBlockPos(java.lang.String key)
public boolean getBoolean(java.lang.String key)
public byte getByte(java.lang.String key)
public char getChar(java.lang.String key)
public DBFolder getDBFolder(java.lang.String key)
public double getDouble(java.lang.String key)
public float getFloat(java.lang.String key)
public int getInt(java.lang.String key)
public long getLong(java.lang.String key)
public short getShort(java.lang.String key)
public java.lang.String getString(java.lang.String key)
public void removeBlockPos(java.lang.String key)
public void removeBoolean(java.lang.String key)
public void removeByte(java.lang.String key)
public void removeChar(java.lang.String key)
public void removeDouble(java.lang.String key)
public void removeDBFolder(java.lang.String key)
public void removeFloat(java.lang.String key)
public void removeInt(java.lang.String key)
public void removeLong(java.lang.String key)
public void removeShort(java.lang.String key)
public void removeString(java.lang.String key)
public void removeData(java.lang.String key, java.lang.Class<? extends java.lang.Object> type, boolean synchronizeOtherSide)