Package org.skriptlang.skript.addon
Interface AddonModule
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A module is a component of a
Modules have two loading phases:
The
The
SkriptAddon
used for registering syntax and other Skript
components.
Modules have two loading phases:
init(SkriptAddon)
followed by load(SkriptAddon)
.
The
init
phase should be used for loading components that are needed first or that may be used by other modules,
such as class infos (think numeric types that are used everywhere).
The
load
phase should be used for loading components more specific to the module, such as syntax.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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.
-
Method Details
-
init
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 beforeload(SkriptAddon)
.- Parameters:
addon
- The addon this module belongs to.- See Also:
-
load
Used for loading the components (e.g. syntax) of this module.- Parameters:
addon
- The addon this module belongs to.- See Also:
-