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
- Direct Known Subclasses:
EnchantmentClassInfo
This class can be used for easily creating ClassInfos for
Registrys.
It registers a language node with usage, a serializer, default expression, and a parser.-
Nested Class Summary
Nested classes/interfaces inherited from class ClassInfo
ClassInfo.PropertyDocs -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionRegistryClassInfo(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) Deprecated, for removal: This API element is subject to removal in a future version.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) Deprecated, for removal: This API element is subject to removal in a future version.registerComparatoris no longer necessary.RegistryClassInfo(Class<R> registryClass, org.bukkit.Registry<R> registry, String codeName, String languageNode, DefaultExpression<R> defaultExpression, Consumer<R> parseCallback) RegistryClassInfo(Class<R> registryClass, org.bukkit.Registry<R> registry, String codeName, String languageNode, Consumer<R> parseCallback) -
Method Summary
Methods inherited from class ClassInfo
after, after, before, before, changer, clone, cloner, defaultExpression, description, documentationId, examples, getAllProperties, getC, getChanger, getCloner, getCodeName, getDefaultExpression, getDescription, getDocName, getDocumentationID, getExamples, getName, getParser, getPropertyDocumentation, getPropertyInfo, getRequiredPlugins, getSerializeAs, getSerializer, getSince, getSupplier, getUsage, getUserInputPatterns, hasDocs, hasProperty, isValidCodeName, matchesUserInput, name, parser, property, requiredPlugins, serializeAs, serializer, since, supplier, supplier, toString, toString, toString, usage, user
-
Constructor Details
-
RegistryClassInfo
-
RegistryClassInfo
public RegistryClassInfo(Class<R> registryClass, org.bukkit.Registry<R> registry, String codeName, String languageNode, Consumer<R> parseCallback) - Parameters:
registryClass- The registry classregistry- The registrycodeName- The name used in patternslanguageNode- The language node of the typeparseCallback- A consumer to run on a successful parse.
-
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, Consumer<R> parseCallback) - Parameters:
registryClass- The registry classregistry- The registrycodeName- The name used in patternslanguageNode- The language node of the typedefaultExpression- The default expression of the typeparseCallback- A consumer to run on a successful parse.
-
RegistryClassInfo
@Deprecated(since="2.16", forRemoval=true) public RegistryClassInfo(Class<R> registryClass, org.bukkit.Registry<R> registry, String codeName, String languageNode, boolean registerComparator) Deprecated, for removal: This API element is subject to removal in a future version.registerComparatoris no longer necessary.- 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
@Deprecated(since="2.16", forRemoval=true) public RegistryClassInfo(Class<R> registryClass, org.bukkit.Registry<R> registry, String codeName, String languageNode, DefaultExpression<R> defaultExpression, boolean registerComparator) Deprecated, for removal: This API element is subject to removal in a future version.registerComparatoris no longer necessary.- 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
-
registerComparatoris no longer necessary.