Interface FEntity

All Known Subinterfaces:
FPlayer
All Known Implementing Classes:
FEntityImpl, FPlayerImpl

public interface FEntity
Anything that can send a message, such as a player, the console or a command block
  • Field Details

    • UNKNOWN_UUID

      static final UUID UNKNOWN_UUID
      The id carried by the unknown entity.
    • UNKNOWN_NAME

      static final String UNKNOWN_NAME
      The name carried by the unknown entity.
      See Also:
    • UNKNOWN_TYPE

      static final String UNKNOWN_TYPE
      The type carried by the unknown entity.
      See Also:
  • Method Details

    • builder

      Starts building an entity.
      Returns:
      a new builder
    • unknown

      static FEntity unknown()
      The stand-in used when the real sender cannot be determined.
      Returns:
      the unknown entity
    • name

      String name()
      The display name.
      Returns:
      the name
    • uuid

      UUID uuid()
      The entity id.
      Returns:
      the id
    • type

      String type()
      The entity type.
      Returns:
      the type
    • showEntityName

      @Nullable net.kyori.adventure.text.Component showEntityName()
    • isUnknown

      default boolean isUnknown()
      Whether this is the stand-in returned by unknown().
      Returns:
      true if the entity is unknown