Package ch.njol.skript.command
Class Argument<T>
java.lang.Object
ch.njol.skript.command.Argument<T>
Represents an argument of a command
-
Method Summary
Modifier and TypeMethodDescriptionT[]
getCurrent
(org.bukkit.event.Event e) int
getIndex()
getType()
boolean
boolean
isSingle()
static <T> @Nullable Argument
<T> newInstance
(@Nullable String name, ClassInfo<T> type, @Nullable String def, int index, boolean single, boolean forceOptional) void
set
(ScriptCommandEvent e, Object[] o) void
setToDefault
(ScriptCommandEvent event) toString()