Class InteractionModule

java.lang.Object
org.skriptlang.skript.bukkit.interactions.InteractionModule
All Implemented Interfaces:
AddonModule

public class InteractionModule extends Object implements AddonModule
  • Constructor Details

    • InteractionModule

      public InteractionModule()
  • Method Details

    • load

      public void load(SkriptAddon addon)
      Description copied from interface: AddonModule
      Used for loading the components (e.g. syntax) of this module.
      Specified by:
      load in interface AddonModule
      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 latest Interaction.PreviousInteraction of an Interaction.
      Parameters:
      interaction - The interaction entity to check.
      Returns:
      The most recent Interaction.PreviousInteraction, or null if no interactions have occurred.
    • name

      public String name()
      Specified by:
      name in interface AddonModule
      Returns:
      The name of this module.