Class Trigger
- java.lang.Object
-
- tech.sbdevelopment.showcontrol.api.triggers.Trigger
-
- Direct Known Subclasses:
AnimaTrigger
,CommandTrigger
,FireworkTrigger
,LaserTrigger
,LightTrigger
,ParticleTrigger
,SpotTrigger
public abstract class Trigger extends Object
This class is the base class for all triggers
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract List<String>
getArgumentTabComplete(org.bukkit.entity.Player player, int index, String arg)
This method gets fired when a player wants to add a cueString
getDataString()
Get the datastring from this cueString
getTriggerId()
Get the ID of the triggervoid
remove()
This method gets fired when the cue gets removed It's not required, and does nothing if it's not needed.abstract void
trigger()
This method gets fired when the cue gets triggered
-
-
-
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 playerindex
- The current argument indexarg
- 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
-
-