Class InteractionModule
java.lang.Object
org.skriptlang.skript.bukkit.interactions.InteractionModule
- All Implemented Interfaces:
AddonModule
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.skriptlang.skript.addon.AddonModule
AddonModule.ModuleOrigin -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable org.bukkit.entity.Interaction.PreviousInteractiongetLatestInteraction(org.bukkit.entity.Interaction interaction) Useful helper to get the latestInteraction.PreviousInteractionof anInteraction.voidload(SkriptAddon addon) Used for loading the components (e.g.name()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.skriptlang.skript.addon.AddonModule
canLoad, init
-
Constructor Details
-
InteractionModule
public InteractionModule()
-
-
Method Details
-
load
Description copied from interface:AddonModuleUsed for loading the components (e.g. syntax) of this module.- Specified by:
loadin interfaceAddonModule- Parameters:
addon- The addon this module belongs to.- See Also:
-
getLatestInteraction
@Nullable public static @Nullable org.bukkit.entity.Interaction.PreviousInteraction getLatestInteraction(org.bukkit.entity.Interaction interaction) Useful helper to get the latestInteraction.PreviousInteractionof anInteraction.- Parameters:
interaction- The interaction entity to check.- Returns:
- The most recent
Interaction.PreviousInteraction, or null if no interactions have occurred.
-
name
- Specified by:
namein interfaceAddonModule- Returns:
- The name of this module.
-