Class Argument<T>

java.lang.Object
ch.njol.skript.command.Argument<T>

public class Argument<T> extends Object
Represents an argument of a command
  • Method Details

    • newInstance

      public static <T> @Nullable Argument<T> newInstance(@Nullable String name, ClassInfo<T> type, @Nullable String def, int index, boolean single, boolean forceOptional)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isOptional

      public boolean isOptional()
    • setToDefault

      public void setToDefault(ScriptCommandEvent event)
    • set

      public void set(ScriptCommandEvent e, Object[] o)
    • getCurrent

      public @Nullable T[] getCurrent(org.bukkit.event.Event e)
    • getType

      public Class<T> getType()
    • getIndex

      public int getIndex()
    • isSingle

      public boolean isSingle()