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

      @Nullable public static <T> @Nullable Argument<T> newInstance(@Nullable @Nullable String name, ClassInfo<T> type, @Nullable @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

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

      public Class<T> getType()
    • getIndex

      public int getIndex()
    • isSingle

      public boolean isSingle()