Class Converters

java.lang.Object
ch.njol.skript.registrations.Converters

@Deprecated(forRemoval=true) public abstract class Converters extends Object
Deprecated, for removal: This API element is subject to removal in a future version.

WARNING! This class has been removed in this update.

This class stub has been left behind to prevent loading errors from outdated addons, but its functionality has been largely removed.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <F, T> T[]
    convert(F[] from, Class<T> to, Converter<? super F,? extends T> conv)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static <F, T> T
    convert(F o, Class<? extends T>[] to)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static <F, T> T
    convert(F o, Class<T> to)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static <T> T[]
    convertArray(@Nullable Object[] o, Class<? extends T>[] to, Class<T> superType)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static <T> T[]
    convertArray(@Nullable Object[] o, Class<T> to)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static boolean
    converterExists(Class<?> from, Class<?> to)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static boolean
    converterExists(Class<?> from, Class<?>... to)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static <T> T[]
    convertStrictly(Object[] original, Class<T> to)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static <T> T
    convertStrictly(Object original, Class<T> to)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static <F, T> T[]
    convertUnsafe(F[] from, Class<?> to, Converter<? super F,? extends T> conv)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static <F, T> Converter<? super F,? extends T>
    getConverter(Class<F> from, Class<T> to)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static <F, T> ConverterInfo<? super F,? extends T>
    getConverterInfo(Class<F> from, Class<T> to)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static <F, T> List<ConverterInfo<?,?>>
    Deprecated, for removal: This API element is subject to removal in a future version.
    static <F, T> void
    registerConverter(Class<F> from, Class<T> to, Converter<F,T> converter)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static <F, T> void
    registerConverter(Class<F> from, Class<T> to, Converter<F,T> converter, int options)
    Deprecated, for removal: This API element is subject to removal in a future version.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Converters

      public Converters()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getConverters

      @Deprecated(forRemoval=true) public static <F, T> List<ConverterInfo<?,?>> getConverters()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • registerConverter

      @Deprecated(forRemoval=true) public static <F, T> void registerConverter(Class<F> from, Class<T> to, Converter<F,T> converter)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • registerConverter

      @Deprecated(forRemoval=true) public static <F, T> void registerConverter(Class<F> from, Class<T> to, Converter<F,T> converter, int options)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • convert

      @Deprecated(forRemoval=true) public static <F, T> T convert(@Nullable F o, Class<T> to)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • convert

      @Deprecated(forRemoval=true) public static <F, T> T convert(@Nullable F o, Class<? extends T>[] to)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • convertArray

      @Deprecated(forRemoval=true) public static <T> T[] convertArray(@Nullable @Nullable Object[] o, Class<T> to)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • convertArray

      @Deprecated(forRemoval=true) public static <T> T[] convertArray(@Nullable @Nullable Object[] o, Class<? extends T>[] to, Class<T> superType)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • convertStrictly

      @Deprecated(forRemoval=true) public static <T> T[] convertStrictly(Object[] original, Class<T> to) throws ClassCastException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      ClassCastException
    • convertStrictly

      @Deprecated(forRemoval=true) public static <T> T convertStrictly(Object original, Class<T> to) throws ClassCastException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      ClassCastException
    • converterExists

      @Deprecated(forRemoval=true) public static boolean converterExists(Class<?> from, Class<?> to)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • converterExists

      @Deprecated(forRemoval=true) public static boolean converterExists(Class<?> from, Class<?>... to)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getConverter

      @Deprecated(forRemoval=true) public static <F, T> Converter<? super F,? extends T> getConverter(Class<F> from, Class<T> to)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getConverterInfo

      @Deprecated(forRemoval=true) public static <F, T> ConverterInfo<? super F,? extends T> getConverterInfo(Class<F> from, Class<T> to)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • convertUnsafe

      @Deprecated(forRemoval=true) public static <F, T> T[] convertUnsafe(F[] from, Class<?> to, Converter<? super F,? extends T> conv)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • convert

      @Deprecated(forRemoval=true) public static <F, T> T[] convert(F[] from, Class<T> to, Converter<? super F,? extends T> conv)
      Deprecated, for removal: This API element is subject to removal in a future version.