Class EnumClassInfo<T extends Enum<T>>

java.lang.Object
ch.njol.skript.classes.ClassInfo<T>
ch.njol.skript.classes.EnumClassInfo<T>
Type Parameters:
T - The enum class.
All Implemented Interfaces:
Debuggable

public class EnumClassInfo<T extends Enum<T>> extends ClassInfo<T>
This class can be used for an easier writing of ClassInfos that are enums, it registers a language node with usage, a serializer, default expression and a parser. Making it easier to register enum ClassInfos.
  • Constructor Details

    • EnumClassInfo

      public EnumClassInfo(Class<T> c, String codeName, String languageNode)
      Parameters:
      c - The class
      codeName - The name used in patterns
      languageNode - The language node of the type
    • EnumClassInfo

      public EnumClassInfo(Class<T> c, String codeName, String languageNode, DefaultExpression<T> defaultExpression)
      Parameters:
      c - The class
      codeName - The name used in patterns
      languageNode - The language node of the type
      defaultExpression - The default expression of the type