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 Type
    Method
    Description
    @NotNull OptionalInt
    getEntityId(@NotNull org.bukkit.World world)
    Returns the entity ID (EID) of the entity represented by this object.
  • Method Details

    • getEntityId

      @NotNull @NotNull OptionalInt getEntityId(@NotNull @NotNull org.bukkit.World world)
      Returns the entity ID (EID) of the entity represented by this object. If the entity is not currently in world then 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