Class TagModule
java.lang.Object
org.skriptlang.skript.addon.HierarchicalAddonModule
org.skriptlang.skript.bukkit.tags.TagModule
- All Implemented Interfaces:
AddonModule
-
Nested Class Summary
Nested classes/interfaces inherited from interface AddonModule
AddonModule.ModuleOrigin, AddonModule.Registrar -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanLoadSelf(SkriptAddon addon) Override for module-specific canLoad logic.static @Nullable org.bukkit.Keyed[]Retrieves a Keyed array based on the type of the provided input object.protected voidinitSelf(SkriptAddon addon) Override for module-specific initialization.protected voidloadSelf(SkriptAddon addon) Override for module-specific loading.name()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AddonModule
moduleRegistry, register
-
Field Details
-
PAPER_TAGS_EXIST
public static final boolean PAPER_TAGS_EXIST -
tagRegistry
-
-
Constructor Details
-
TagModule
-
-
Method Details
-
canLoadSelf
Description copied from class:HierarchicalAddonModuleOverride for module-specific canLoad logic. Default returns true.- Overrides:
canLoadSelfin classHierarchicalAddonModule- Parameters:
addon- The addon this module belongs to.- Returns:
- Whether this module can load.
-
initSelf
Description copied from class:HierarchicalAddonModuleOverride for module-specific initialization.- Overrides:
initSelfin classHierarchicalAddonModule- Parameters:
addon- The addon this module belongs to.
-
loadSelf
Description copied from class:HierarchicalAddonModuleOverride for module-specific loading.- Specified by:
loadSelfin classHierarchicalAddonModule- 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
- Returns:
- The name of this module.
-