Hopperlib
Loading...
Searching...
No Matches
cc.mrcl.hopperlib.Utils.HopperSerializable.SerializationMap Class Reference

Public Member Functions

 SerializationMap (Map< String, Object > map)
 SerializationMap (SerializationMap clone)
boolean contains (String tag)
void put (String tag, Object object)
void put (String tag, Object object, boolean shouldAddType)
void putIfNotNull (String tag, Object object)
void putIfNotNull (String tag, Object object, boolean shouldAddType)
void putIfNotEmpty (String tag, List<?> objects)
void putIfNotEmpty (String tag, List<?> objects, boolean shouldAddType)
Map< String, Object > build ()
Location getLocation (String tag)
Location getLocation (String tag, Location defaultValue)
Vector getVector (String tag)
Vector getVector (String tag, Vector defaultValue)
ItemStack getItemStack (String tag)
ItemStack getItemStack (String tag, ItemStack defaultValue)
String getString (String tag)
String getString (String tag, String defaultValue)
int getInt (String tag)
int getInt (String tag, int defaultValue)
float getFloat (String tag)
float getFloat (String tag, float defaultValue)
double getDouble (String tag)
double getDouble (String tag, double defaultValue)
boolean getBoolean (String tag)
boolean getBoolean (String tag, boolean defaultValue)
byte getByte (String tag)
byte getByte (String tag, byte defaultValue)
short getShort (String tag)
short getShort (String tag, short defaultValue)
long getLong (String tag)
long getLong (String tag, long defaultValue)
char getChar (String tag)
char getChar (String tag, char defaultValue)
UUID getUUID (String tag)
UUID getUUID (String tag, UUID defaultValue)

Detailed Description

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


The documentation for this class was generated from the following file:
  • src/main/java/cc/mrcl/hopperlib/Utils/HopperSerializable.java