Interface ILine


  • public interface ILine
    Represents a single NPC dialog line with text, an optional sound, and target formatting.
    • Method Detail

      • formatTarget

        ILine formatTarget​(IEntityLivingBase entityLivingBase)
        Returns a copy of this line with target-specific placeholders resolved.
        Parameters:
        entityLivingBase - the target entity used for placeholder substitution.
        Returns:
        the formatted line.
      • getText

        String getText()
        Returns:
        the text content of this line.
      • setText

        void setText​(String text)
        Sets the text content of this line.
        Parameters:
        text - the new text.
      • getSound

        String getSound()
        Returns:
        the sound resource to play with this line, or null if none.
      • setSound

        void setSound​(String sound)
        Sets the sound resource to play with this line.
        Parameters:
        sound - the sound resource path, or null for none.
      • hideText

        void hideText​(boolean hide)
        Sets whether the text of this line should be hidden when spoken.
        Parameters:
        hide - true to hide the text; false to show.
      • hideText

        boolean hideText()
        Returns:
        true if the text is hidden when this line is spoken.