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

public class RegistryClassInfo<R extends org.bukkit.Keyed> extends ClassInfo<R>
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.
  • Constructor Details

    • RegistryClassInfo

      public RegistryClassInfo(Class<R> registryClass, org.bukkit.Registry<R> registry, String codeName, String languageNode)
    • RegistryClassInfo

      public RegistryClassInfo(Class<R> registryClass, org.bukkit.Registry<R> registry, String codeName, String languageNode, DefaultExpression<R> defaultExpression)
      Parameters:
      registry - The registry
      codeName - The name used in patterns