Class Trigger

    • Constructor Detail

      • Trigger

        public Trigger()
      • Trigger

        public Trigger​(String[] dataString)
    • Method Detail

      • trigger

        public abstract void trigger()
        This method gets fired when the cue gets triggered
      • getArgumentTabComplete

        public abstract List<String> getArgumentTabComplete​(@Nullable
                                                            org.bukkit.entity.Player player,
                                                            int index,
                                                            String arg)
        This method gets fired when a player wants to add a cue
        Parameters:
        player - The player that wants to add the cue, will be null if it's not a player
        index - The current argument index
        arg - The current argument
        Returns:
        The tab complete value based on the index and argument
      • remove

        public void remove()
        This method gets fired when the cue gets removed It's not required, and does nothing if it's not needed.
      • getDataString

        public String getDataString()
        Get the datastring from this cue
        Returns:
        The datastring
      • getTriggerId

        public String getTriggerId()
        Get the ID of the trigger
        Returns:
        The ID