Class AnyInfo<Type extends AnyProvider>

java.lang.Object
ch.njol.skript.classes.ClassInfo<Type>
ch.njol.skript.classes.AnyInfo<Type>
All Implemented Interfaces:
Debuggable

@Deprecated(since="2.13", forRemoval=true) public class AnyInfo<Type extends AnyProvider> extends ClassInfo<Type>
Deprecated, for removal: This API element is subject to removal in a future version.
Use Property instead.
A special kind of ClassInfo for dealing with 'any'-accepting types. These auto-generate their user patterns (e.g. named -> any named thing).
See Also:
  • Constructor Details

    • AnyInfo

      public AnyInfo(Class<Type> c, String codeName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      c - The class
      codeName - The name used in patterns
  • Method Details

    • user

      public ClassInfo<Type> user(String... userInputPatterns) throws PatternSyntaxException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      user in class ClassInfo<Type extends AnyProvider>
      Parameters:
      userInputPatterns - Regex patterns to match this class, e.g. in the expressions loop-[type], random [type] out of ..., or as command arguments. These patterns must be english and match singular and plural.
      Throws:
      PatternSyntaxException - If any of the patterns' syntaxes is invalid