Package org.skriptlang.skript
Interface Skript
- All Superinterfaces:
SkriptAddon
,ViewProvider<SkriptAddon>
The main class for everything related to Skript.
-
Method Summary
Modifier and TypeMethodDescription@Unmodifiable Collection
<SkriptAddon> addons()
static Skript
Constructs a default implementation of a Skript.registerAddon
(Class<?> source, String name) Registers the provided addon with this Skript and loads the provided modules.default Skript
Constructs an unmodifiable view of this Skript.Methods inherited from interface org.skriptlang.skript.addon.SkriptAddon
hasRegistry, loadModules, localizer, name, registry, registry, removeRegistry, source, storeRegistry, syntaxRegistry
-
Method Details
-
of
Constructs a default implementation of a Skript. It makes use of the default implementations of required components.- Parameters:
source
- The main class of the application creating this Skript. Typically, this can be the class invoking this method.name
- The name for the Skript to use.- Returns:
- A Skript.
-
registerAddon
Registers the provided addon with this Skript and loads the provided modules.- Parameters:
source
- The main class of the application registering this addon. Typically, this can be the class invoking this method.name
- The name of the addon to register.
-
addons
@Unmodifiable Collection<SkriptAddon> addons()- Returns:
- An unmodifiable snapshot of addons currently registered with this Skript.
-
unmodifiableView
Constructs an unmodifiable view of this Skript. That is, the returned Skript will be unable to register new addons and the individual addons fromaddons()
will be unmodifiable. Additionally, it will return unmodifiable views of its inheritedSkriptAddon
components.- Specified by:
unmodifiableView
in interfaceSkriptAddon
- Specified by:
unmodifiableView
in interfaceViewProvider<SkriptAddon>
- Returns:
- An unmodifiable view of this Skript.
- See Also:
-