Interface GlowingEntities.EntityIdentifier
- All Known Implementing Classes:
GlowingEntities.EntityIdentifierEID, GlowingEntities.EntityidentifierRealEntity
- Enclosing class:
GlowingEntities
public static interface GlowingEntities.EntityIdentifier
Uniquely represents an entity (e.g. by its UUID).
This class should implement identity methods (hashCode and equals).
- Author:
- SkytAsul
-
Method Summary
Modifier and TypeMethodDescription@NotNull OptionalIntgetEntityId(@NotNull org.bukkit.World world) Returns the entity ID (EID) of the entity represented by this object.
-
Method Details
-
getEntityId
Returns the entity ID (EID) of the entity represented by this object. If the entity is not currently inworldthen an empty Optional should be returned.- Parameters:
world- world in which the entity should be- Returns:
- the EID of the entity or an empty optional if the entity is not in the world
-