Package ch.njol.skript.classes
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
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.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionEnumClassInfo
(Class<T> c, String codeName, String languageNode) EnumClassInfo
(Class<T> c, String codeName, String languageNode, DefaultExpression<T> defaultExpression) -
Method Summary
Methods inherited from class ch.njol.skript.classes.ClassInfo
after, after, before, before, changer, changer, clone, cloner, defaultExpression, description, documentationId, examples, getC, getChanger, getCloner, getCodeName, getDefaultExpression, getDescription, getDocName, getDocumentationID, getExamples, getMath, getMathRelativeType, getName, getParser, getRelativeMath, getRequiredPlugins, getSerializeAs, getSerializer, getSince, getSupplier, getUsage, getUserInputPatterns, hasDocs, isVaildCodeName, isValidCodeName, math, name, parser, requiredPlugins, serializeAs, serializer, since, supplier, supplier, toString, toString, toString, usage, user
-
Constructor Details
-
EnumClassInfo
- Parameters:
c
- The classcodeName
- The name used in patternslanguageNode
- The language node of the type
-
EnumClassInfo
public EnumClassInfo(Class<T> c, String codeName, String languageNode, DefaultExpression<T> defaultExpression) - Parameters:
c
- The classcodeName
- The name used in patternslanguageNode
- The language node of the typedefaultExpression
- The default expression of the type
-