Class TriggerEntryData

java.lang.Object
org.skriptlang.skript.lang.entry.EntryData<Trigger>
org.skriptlang.skript.lang.entry.util.TriggerEntryData

public class TriggerEntryData extends EntryData<Trigger>
An entry data class designed to take a SectionNode and parse it into a Trigger. This data will NEVER return null.
See Also:
  • Constructor Details

    • TriggerEntryData

      public TriggerEntryData(String key, @Nullable @Nullable Trigger defaultValue, boolean optional)
  • Method Details

    • getValue

      @Nullable public @Nullable Trigger getValue(Node node)
      Description copied from class: EntryData
      Obtains a value from the provided node using the methods of this entry data.
      Specified by:
      getValue in class EntryData<Trigger>
      Parameters:
      node - The node to obtain a value from.
      Returns:
      The value obtained from the provided node.
    • canCreateWith

      public boolean canCreateWith(Node node)
      Description copied from class: EntryData
      A method to be implemented by all entry data classes that determines whether the provided node may be used with the entry data type to obtain a value.
      Specified by:
      canCreateWith in class EntryData<Trigger>
      Parameters:
      node - The node to check.
      Returns:
      Whether the provided node may be used with this entry data to obtain a value.