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

    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

    compareTo
  • Method Details

    • getEntity

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

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

      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

      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