Class TagModule

java.lang.Object
org.skriptlang.skript.addon.HierarchicalAddonModule
org.skriptlang.skript.bukkit.tags.TagModule
All Implemented Interfaces:
AddonModule

public class TagModule extends HierarchicalAddonModule
  • Field Details

    • PAPER_TAGS_EXIST

      public static final boolean PAPER_TAGS_EXIST
    • tagRegistry

      public static TagRegistry tagRegistry
  • Constructor Details

    • TagModule

      public TagModule(AddonModule parentModule)
  • Method Details

    • canLoadSelf

      protected boolean canLoadSelf(SkriptAddon addon)
      Description copied from class: HierarchicalAddonModule
      Override for module-specific canLoad logic. Default returns true.
      Overrides:
      canLoadSelf in class HierarchicalAddonModule
      Parameters:
      addon - The addon this module belongs to.
      Returns:
      Whether this module can load.
    • initSelf

      protected void initSelf(SkriptAddon addon)
      Description copied from class: HierarchicalAddonModule
      Override for module-specific initialization.
      Overrides:
      initSelf in class HierarchicalAddonModule
      Parameters:
      addon - The addon this module belongs to.
    • loadSelf

      protected void loadSelf(SkriptAddon addon)
      Description copied from class: HierarchicalAddonModule
      Override for module-specific loading.
      Specified by:
      loadSelf in class HierarchicalAddonModule
      Parameters:
      addon - The addon this module belongs to.
    • getKeyed

      @Contract(value="null -> null", pure=true) @Nullable public static @Nullable org.bukkit.Keyed[] getKeyed(Object input)
      Retrieves a Keyed array based on the type of the provided input object.
      Parameters:
      input - the input object to determine the keyed value, can be of type Entity, EntityData, ItemType, ItemStack, Slot, Block, or BlockData.
      Returns:
      a Keyed array corresponding to the input's type, or null if the input is null or if no corresponding Keyed value can be determined. ItemTypes may return multiple values, though everything else will return a single element array.
    • name

      public String name()
      Returns:
      The name of this module.