Class ShimmerMagnet

java.lang.Object
io.github.pylonmc.rebar.item.RebarItem
io.github.pylonmc.pylon.content.tools.ShimmerMagnet
All Implemented Interfaces:
io.github.pylonmc.rebar.item.base.RebarCooldownable, io.github.pylonmc.rebar.item.base.RebarInteractor, io.github.pylonmc.rebar.item.base.RebarInventoryTicker, net.kyori.adventure.key.Keyed, org.bukkit.Keyed

public class ShimmerMagnet extends io.github.pylonmc.rebar.item.RebarItem implements io.github.pylonmc.rebar.item.base.RebarInteractor, io.github.pylonmc.rebar.item.base.RebarInventoryTicker
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.github.pylonmc.rebar.item.RebarItem

    io.github.pylonmc.rebar.item.RebarItem.Companion

    Nested classes/interfaces inherited from interface io.github.pylonmc.rebar.item.base.RebarInteractor

    io.github.pylonmc.rebar.item.base.RebarInteractor.Companion
  • Field Summary

    Fields inherited from class io.github.pylonmc.rebar.item.RebarItem

    Companion

    Fields inherited from interface io.github.pylonmc.rebar.item.base.RebarInteractor

    Companion
  • Constructor Summary

    Constructors
    Constructor
    Description
    ShimmerMagnet(@NotNull org.bukkit.inventory.ItemStack stack)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
     
    long
     
    double
     
    @NotNull List<@NotNull io.github.pylonmc.rebar.i18n.RebarArgument>
     
    boolean
    Checks if a shimmer magnet is enabled
    void
    onTick(@NotNull org.bukkit.entity.Player player)
     
    void
    onUsedToClick(@NotNull org.bukkit.event.player.PlayerInteractEvent event, @NotNull org.bukkit.event.EventPriority priority)
     

    Methods inherited from class io.github.pylonmc.rebar.item.RebarItem

    equals, fromStack, fromStack, getAddon, getKey, getRebarBlock, getResearch, getResearchBypassPermission, getSchema, getSettings, getSettings, getStack, hashCode, isDisabled, isRebarItem, isRebarItem, place, prePlace, register, register, suppressNameWarnings

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.bukkit.Keyed

    key

    Methods inherited from interface io.github.pylonmc.rebar.item.base.RebarCooldownable

    respectCooldown
  • Constructor Details

    • ShimmerMagnet

      public ShimmerMagnet(@NotNull @NotNull org.bukkit.inventory.ItemStack stack)
  • Method Details

    • getPlaceholders

      @NotNull public @NotNull List<@NotNull io.github.pylonmc.rebar.i18n.RebarArgument> getPlaceholders()
      Overrides:
      getPlaceholders in class io.github.pylonmc.rebar.item.RebarItem
    • onUsedToClick

      public void onUsedToClick(@NotNull @NotNull org.bukkit.event.player.PlayerInteractEvent event, @NotNull @NotNull org.bukkit.event.EventPriority priority)
      Specified by:
      onUsedToClick in interface io.github.pylonmc.rebar.item.base.RebarInteractor
    • isEnabled

      public boolean isEnabled()
      Checks if a shimmer magnet is enabled
      Returns:
      true is enabled else otherwise
    • onTick

      public void onTick(@NotNull @NotNull org.bukkit.entity.Player player)
      Specified by:
      onTick in interface io.github.pylonmc.rebar.item.base.RebarInventoryTicker
    • getBaseTickInterval

      public long getBaseTickInterval()
      Specified by:
      getBaseTickInterval in interface io.github.pylonmc.rebar.item.base.RebarInventoryTicker
    • getPickupDistance

      public double getPickupDistance()
    • getAttractForce

      public double getAttractForce()