public interface StoredEntityData
Modifier and Type | Method and Description |
---|---|
<T> T |
get(java.lang.Class<T> objectClass)
Returns an object from the storage if present.
|
boolean |
has(java.lang.Class<?> objectClass)
Checks if the storage contains an object of the given type.
|
void |
put(java.lang.Object object)
Stores an object based on its class.
|
<T> T |
remove(java.lang.Class<T> objectClass)
Removes and returns an object from the storage if present.
|
EntityType |
type()
Returns the entity type of the stored entity.
|
EntityType type()
boolean has(java.lang.Class<?> objectClass)
objectClass
- object class to check<T> T get(java.lang.Class<T> objectClass)
T
- object typeobjectClass
- class of the object to get<T> T remove(java.lang.Class<T> objectClass)
T
- object typeobjectClass
- class of the object to removevoid put(java.lang.Object object)
object
- object to store