SerializationMap

public class SerializationMap

This class will automatically call the serialize() method in those classes that have it It also has helper methods to retrieve info more easily

Functions

Link copied to clipboard
public Map<String, Object> build()
Link copied to clipboard
public boolean contains(String tag)
Link copied to clipboard
public boolean getBoolean(String tag)
public boolean getBoolean(String tag, boolean defaultValue)
Link copied to clipboard
public byte getByte(String tag)
public byte getByte(String tag, byte defaultValue)
Link copied to clipboard
public char getChar(String tag)
public char getChar(String tag, char defaultValue)
Link copied to clipboard
public double getDouble(String tag)
public double getDouble(String tag, double defaultValue)
Link copied to clipboard
public float getFloat(String tag)
public float getFloat(String tag, float defaultValue)
Link copied to clipboard
public int getInt(String tag)
public int getInt(String tag, int defaultValue)
Link copied to clipboard
public ItemStack getItemStack(String tag)
public ItemStack getItemStack(String tag, ItemStack defaultValue)
Link copied to clipboard
public List<T> getList<T>(String tag, Class<T> clazz)
public List<T> getList<T>(String tag, Class<T> clazz, List<T> defaultValue)
public List<T> getList<T>(String tag, Class<T> clazz, Map<String, Object> additions)
public List<T> getList<T>(String tag, Class<T> clazz, List<T> defaultValue, Map<String, Object> additions)
Link copied to clipboard
public Location getLocation(String tag)
public Location getLocation(String tag, Location defaultValue)
Link copied to clipboard
public long getLong(String tag)
public long getLong(String tag, long defaultValue)
Link copied to clipboard
public T getObject<T>(String tag, Class<T> clazz)
public T getObject<T>(String tag, Class<T> clazz, T defaultValue)
public T getObject<T>(String tag, Class<T> clazz, Map<String, Object> additions)
public T getObject<T>(String tag, Class<T> clazz, T defaultValue, Map<String, Object> additions)
Link copied to clipboard
public short getShort(String tag)
public short getShort(String tag, short defaultValue)
Link copied to clipboard
public String getString(String tag)
public String getString(String tag, String defaultValue)
Link copied to clipboard
public UUID getUUID(String tag)
public UUID getUUID(String tag, UUID defaultValue)
Link copied to clipboard
public Vector getVector(String tag)
public Vector getVector(String tag, Vector defaultValue)
Link copied to clipboard
public void put(String tag, Object object)
public void put(String tag, Object object, boolean shouldAddType)
Link copied to clipboard
public void putIfNotEmpty(String tag, List<? extends Object> objects)
public void putIfNotEmpty(String tag, List<? extends Object> objects, boolean shouldAddType)
Link copied to clipboard
public void putIfNotNull(String tag, Object object)
public void putIfNotNull(String tag, Object object, boolean shouldAddType)