Interface PlatformEntity


  • public interface PlatformEntity
    Represents an entity on the server.

    This does not relate directly to a "Minecraft Entity". The closest comparison is to a "CommandSender" or "CommandSource".

    The various types of PlatformEntity are detailed in PlatformEntity.Type.

    • Method Detail

      • getUniqueId

        @Nullable UUID getUniqueId()
        Gets the unique id of the entity, if it has one.

        For players, this returns their uuid assigned by the server.

        Returns:
        the uuid of the object, if available
      • getName

        @NonNull String getName()
        Gets the name of the object
        Returns:
        the object name