Interface Identifiable

All Known Subinterfaces:
BaseEntity, BasePlayer, HitBox, ModelDisplay, PlayerChannelHandler

public interface Identifiable
Represents an object that can be identified by a unique ID and a UUID.

This is commonly used for entities and other tracked objects in the game.

Since:
1.15.2
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    id()
    Returns the integer ID of the object (e.g., entity ID).
    @NotNull UUID
    Returns the UUID of the object.
  • Method Details

    • id

      int id()
      Returns the integer ID of the object (e.g., entity ID).
      Returns:
      the ID
      Since:
      1.15.2
    • uuid

      @NotNull @NotNull UUID uuid()
      Returns the UUID of the object.
      Returns:
      the UUID
      Since:
      1.15.2