Package ch.njol.skript.classes.registry
Class RegistryClassInfo<R extends org.bukkit.Keyed>
java.lang.Object
ch.njol.skript.classes.ClassInfo<R>
ch.njol.skript.classes.registry.RegistryClassInfo<R>
- Type Parameters:
R
- The Registry class.
- All Implemented Interfaces:
Debuggable
This class can be used for easily creating ClassInfos for
Registry
s.
It registers a language node with usage, a serializer, default expression, and a parser.-
Field Summary
-
Constructor Summary
ConstructorDescriptionRegistryClassInfo
(Class<R> registryClass, org.bukkit.Registry<R> registry, String codeName, String languageNode) RegistryClassInfo
(Class<R> registryClass, org.bukkit.Registry<R> registry, String codeName, String languageNode, boolean registerComparator) RegistryClassInfo
(Class<R> registryClass, org.bukkit.Registry<R> registry, String codeName, String languageNode, DefaultExpression<R> defaultExpression) RegistryClassInfo
(Class<R> registryClass, org.bukkit.Registry<R> registry, String codeName, String languageNode, DefaultExpression<R> defaultExpression, boolean registerComparator) -
Method Summary
Methods inherited from class ch.njol.skript.classes.ClassInfo
after, after, before, before, changer, clone, cloner, defaultExpression, description, documentationId, examples, getC, getChanger, getCloner, getCodeName, getDefaultExpression, getDescription, getDocName, getDocumentationID, getExamples, getName, getParser, getRequiredPlugins, getSerializeAs, getSerializer, getSince, getSupplier, getUsage, getUserInputPatterns, hasDocs, isValidCodeName, matchesUserInput, name, parser, requiredPlugins, serializeAs, serializer, since, supplier, supplier, toString, toString, toString, usage, user
-
Constructor Details
-
RegistryClassInfo
public RegistryClassInfo(Class<R> registryClass, org.bukkit.Registry<R> registry, String codeName, String languageNode) - Parameters:
registryClass
- The registry classregistry
- The registrycodeName
- The name used in patternslanguageNode
- The language node of the type
-
RegistryClassInfo
public RegistryClassInfo(Class<R> registryClass, org.bukkit.Registry<R> registry, String codeName, String languageNode, boolean registerComparator) - Parameters:
registryClass
- The registry classregistry
- The registrycodeName
- The name used in patternslanguageNode
- The language node of the typeregisterComparator
- Whether a default comparator should be registered for this registry's classinfo
-
RegistryClassInfo
public RegistryClassInfo(Class<R> registryClass, org.bukkit.Registry<R> registry, String codeName, String languageNode, DefaultExpression<R> defaultExpression) - Parameters:
registryClass
- The registry classregistry
- The registrycodeName
- The name used in patternslanguageNode
- The language node of the typedefaultExpression
- The default expression of the type
-
RegistryClassInfo
public RegistryClassInfo(Class<R> registryClass, org.bukkit.Registry<R> registry, String codeName, String languageNode, DefaultExpression<R> defaultExpression, boolean registerComparator) - Parameters:
registryClass
- The registry classregistry
- The registrycodeName
- The name used in patternslanguageNode
- The language node of the typedefaultExpression
- The default expression of the typeregisterComparator
- Whether a default comparator should be registered for this registry's classinfo
-