Class Argument<T>
java.lang.Object
ch.njol.skript.command.Argument<T>
Deprecated, for removal: This API element is subject to removal in a future version.
Represents an argument of a command
-
Method Summary
Modifier and TypeMethodDescriptionT[]getCurrent(org.bukkit.event.Event e) Deprecated, for removal: This API element is subject to removal in a future version.intgetIndex()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable StringgetName()Deprecated, for removal: This API element is subject to removal in a future version.getType()Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.booleanisSingle()Deprecated, for removal: This API element is subject to removal in a future version.static <T> @Nullable Argument<T> newInstance(@Nullable String name, ClassInfo<T> type, @Nullable String def, int index, boolean single, boolean forceOptional) Deprecated, for removal: This API element is subject to removal in a future version.voidset(ScriptCommandEvent e, Object[] o) Deprecated, for removal: This API element is subject to removal in a future version.voidsetToDefault(ScriptCommandEvent event) Deprecated, for removal: This API element is subject to removal in a future version.toString()Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
newInstance
-
toString
-
isOptional
public boolean isOptional()Deprecated, for removal: This API element is subject to removal in a future version. -
setToDefault
Deprecated, for removal: This API element is subject to removal in a future version. -
set
Deprecated, for removal: This API element is subject to removal in a future version. -
getCurrent
Deprecated, for removal: This API element is subject to removal in a future version. -
getName
Deprecated, for removal: This API element is subject to removal in a future version. -
getType
-
getIndex
public int getIndex()Deprecated, for removal: This API element is subject to removal in a future version. -
isSingle
public boolean isSingle()Deprecated, for removal: This API element is subject to removal in a future version.
-
ArgumentData.