Interface GearService.GearAbility

Enclosing interface:
GearService

public static interface GearService.GearAbility
Global gear ability hooks. onUse runs on right-click and onAttack runs when the player damages another player. Check the player's owned gear inside the handler if the ability is gear-specific.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull net.kyori.adventure.key.Key
    key()
     
    default void
    onAttack(@NotNull org.bukkit.entity.Player attacker, @NotNull org.bukkit.entity.Player target)
     
    default void
    onUse(@NotNull org.bukkit.entity.Player player)
     
  • Method Details

    • key

      @NotNull @NotNull net.kyori.adventure.key.Key key()
    • onUse

      default void onUse(@NotNull @NotNull org.bukkit.entity.Player player)
    • onAttack

      default void onAttack(@NotNull @NotNull org.bukkit.entity.Player attacker, @NotNull @NotNull org.bukkit.entity.Player target)