Class TypeHints

java.lang.Object
ch.njol.skript.variables.TypeHints

public class TypeHints extends Object
This is used to manage local variable type hints.
  • EffChange adds then when local variables are set
  • Variable checks them when parser tries to create it
  • ScriptLoader clears hints after each section has been parsed
  • ScriptLoader enters and exists scopes as needed
  • Constructor Details

    • TypeHints

      public TypeHints()
  • Method Details

    • add

      public static void add(String variable, Class<?> hint)
    • get

      public static @Nullable Class<?> get(String variable)
    • enterScope

      public static void enterScope()
    • exitScope

      public static void exitScope()
    • clear

      public static void clear()