Interface Talkable

All Superinterfaces:
Comparable<Object>
All Known Implementing Classes:
TalkableEntity

public interface Talkable extends Comparable<Object>
Talkable provides an interface for talking to Players, Entities and NPCs.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    Gets the LivingEntity associated with this Talkable
    Gets the name of the Talkable LivingEntity
    void
    talkNear(SpeechContext context, String message)
    Called when talking near this Talkable Entity to provide a universal method to getting an event/output.
    void
    talkTo(SpeechContext context, String message)
    Called when talking to this Talkable Entity to provide a universal method to getting an event/output.

    Methods inherited from interface java.lang.Comparable Link icon

    compareTo
  • Method Details Link icon

    • getEntity Link icon

      Entity getEntity()
      Gets the LivingEntity associated with this Talkable
      Returns:
      a LivingEntity
    • getName Link icon

      String getName()
      Gets the name of the Talkable LivingEntity
      Returns:
      name
    • talkNear Link icon

      void talkNear(SpeechContext context, String message)
      Called when talking near this Talkable Entity to provide a universal method to getting an event/output.
      Parameters:
      context - the Speech context
      message - The message to send
    • talkTo Link icon

      void talkTo(SpeechContext context, String message)
      Called when talking to this Talkable Entity to provide a universal method to getting an event/output.
      Parameters:
      context - the Speech context
      message - The message to send