Module gomint.api

Class SignChangeTextEvent

    • Method Detail

      • getBlock

        public Block getBlock()
        Get the sign block which should get its text changed. This returned block can be of BlockSign or BlockWallSign type.
        Returns:
        the block which should be changed
      • setLine

        public 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

        public 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ö