Class SubCommandEntryData
java.lang.Object
org.skriptlang.skript.lang.entry.EntryData<SubCommandEntryData.Result>
org.skriptlang.skript.bukkit.command.elements.structures.util.SubCommandEntryData
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSubCommandEntryData(String key, boolean optional, boolean multiple) SubCommandEntryData(String key, boolean optional, boolean multiple, boolean isSubcommandGroupEntry) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanCreateWith(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 SubCommandEntryData.ResultObtains a value from the provided node using the methods of this entry data.Methods inherited from class EntryData
getDefaultValue, getKey, isOptional, supportsMultiple
-
Field Details
-
SUB_COMMAND_VALIDATOR
-
-
Constructor Details
-
SubCommandEntryData
-
SubCommandEntryData
public SubCommandEntryData(String key, boolean optional, boolean multiple, boolean isSubcommandGroupEntry)
-
-
Method Details
-
getValue
Description copied from class:EntryDataObtains a value from the provided node using the methods of this entry data.- Specified by:
getValuein classEntryData<SubCommandEntryData.Result>- Parameters:
node- The node to obtain a value from.- Returns:
- The value obtained from the provided node.
-
canCreateWith
Description copied from class:EntryDataA 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:
canCreateWithin classEntryData<SubCommandEntryData.Result>- Parameters:
node- The node to check.- Returns:
- Whether the provided node may be used with this entry data to obtain a value.
-