Class Trigger
- java.lang.Object
-
- net.frozenspace.frostlib.achievement.Trigger
-
public class Trigger extends java.lang.ObjectClass representation of a trigger json object
-
-
Constructor Summary
Constructors Constructor Description Trigger(@NotNull java.lang.String name, @NotNull TriggerType trigger)Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TriggeraddCondition(@NotNull java.lang.String name, @NotNull java.lang.Object value)Add a condition to this triggerjava.lang.StringgetName()Get the name of this trigger
-
-
-
Constructor Detail
-
Trigger
public Trigger(@NotNull @NotNull java.lang.String name, @NotNull @NotNull TriggerType trigger)Default constructor- Parameters:
name- Name of the triggertrigger- Type of the trigger
-
-
Method Detail
-
addCondition
public Trigger addCondition(@NotNull @NotNull java.lang.String name, @NotNull @NotNull java.lang.Object value)
Add a condition to this trigger- Parameters:
name- Name of this conditionvalue- Value of this condition- Returns:
- Current instance
-
getName
public java.lang.String getName()
Get the name of this trigger- Returns:
- The name of this trigger
-
-