T - The type of object of this entries tablepublic class EmptyObject<T> extends TableEntry<T> implements DataSerializable
| Constructor and Description |
|---|
EmptyObject(double weight)
Creates a new
EmptyObject with the given weight. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getContentVersion()
Gets the content version of this
DataSerializable. |
int |
hashCode() |
DataContainer |
toContainer()
Serializes this object into a comprehensible
DataContainer. |
String |
toString() |
getWeightpublic EmptyObject(double weight)
EmptyObject with the given weight.weight - The weight of this objectpublic int getContentVersion()
DataSerializableDataSerializable. The version
may differ between instances of plugins and implementations such that
the DataView from DataSerializable.toContainer() may include different
information, or remove other information as they are no longer deemed
necessary. The version goes hand in hand with DataContentUpdater
as it is required when there exists any DataView of this
DataSerializable with an "older" version.getContentVersion in interface DataSerializablepublic DataContainer toContainer()
DataSerializableDataContainer.toContainer in interface DataSerializable