Class Argument<T>

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

@Deprecated(since="2.17", forRemoval=true) public class Argument<T> extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
There is no direct replacement for this class. The closest alternative is ArgumentData.
Represents an argument of a command
  • Method Summary

    Modifier and Type
    Method
    Description
    T[]
    getCurrent(org.bukkit.event.Event e)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    @Nullable String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    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.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class Object
    • isOptional

      public boolean isOptional()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setToDefault

      public void setToDefault(ScriptCommandEvent event)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • set

      public void set(ScriptCommandEvent e, Object[] o)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getCurrent

      @Nullable public T[] getCurrent(org.bukkit.event.Event e)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getName

      @Nullable public @Nullable String getName()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getType

      public Class<T> getType()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • 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.