Class TriggerEntryData
java.lang.Object
org.skriptlang.skript.lang.entry.EntryData<Trigger>
org.skriptlang.skript.lang.entry.util.TriggerEntryData
An entry data class designed to take a
SectionNode
and parse it into a Trigger.
This data will NEVER return null.- See Also:
-
Constructor Summary
ConstructorDescriptionTriggerEntryData
(String key, @Nullable Trigger defaultValue, boolean optional) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canCreateWith
(Node node) 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.@Nullable Trigger
Obtains a value from the provided node using the methods of this entry data.Methods inherited from class org.skriptlang.skript.lang.entry.EntryData
getDefaultValue, getKey, isOptional
-
Constructor Details
-
TriggerEntryData
-
-
Method Details
-
getValue
Description copied from class:EntryData
Obtains a value from the provided node using the methods of this entry data. -
canCreateWith
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 classEntryData<Trigger>
- Parameters:
node
- The node to check.- Returns:
- Whether the provided node may be used with this entry data to obtain a value.
-