Module gomint.api

Interface BlockSign

  • All Superinterfaces:
    Block

    public interface BlockSign
    extends Block
    Version:
    1.0
    Author:
    geNAZt
    • Method Detail

      • getLines

        List<String> getLines()
        Get a copy of all lines on this sign. The maximum size of this list is 4.
        Returns:
        list of all lines
      • setLine

        void setLine​(int line,
                     String content)
        Set a specific line to new content. When you set line 2 and there is no other line line 1 will be empty string
        Parameters:
        line - which should be set
        content - which should be set on that line
      • getLine

        String getLine​(int line)
        Get a specific line of the sign content
        Parameters:
        line - which you want to get
        Returns:
        string or null when not set