Class DamageSourceModule
java.lang.Object
org.skriptlang.skript.bukkit.damagesource.DamageSourceModule
- All Implemented Interfaces:
AddonModule
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canLoad
(SkriptAddon addon) Allow addons to specify whether they can load or not.void
init
(SkriptAddon addon) Used for loading the components of this module that are needed first or by other modules (e.g.void
load
(SkriptAddon addon) Used for loading the components (e.g.
-
Constructor Details
-
DamageSourceModule
public DamageSourceModule()
-
-
Method Details
-
canLoad
Description copied from interface:AddonModule
Allow addons to specify whether they can load or not. Called prior toAddonModule.init(SkriptAddon)
- Specified by:
canLoad
in interfaceAddonModule
- Parameters:
addon
- The addon this module belongs to.- Returns:
- Whether this module can load.
-
init
Description copied from interface:AddonModule
Used for loading the components of this module that are needed first or by other modules (e.g. class infos). This method will always be called beforeAddonModule.load(SkriptAddon)
.- Specified by:
init
in interfaceAddonModule
- Parameters:
addon
- The addon this module belongs to.- See Also:
-
load
Description copied from interface:AddonModule
Used for loading the components (e.g. syntax) of this module.- Specified by:
load
in interfaceAddonModule
- Parameters:
addon
- The addon this module belongs to.- See Also:
-