Class ItemMagnet
java.lang.Object
io.github.pylonmc.pylon.core.item.PylonItem
io.github.pylonmc.pylon.base.content.tools.ItemMagnet
- All Implemented Interfaces:
io.github.pylonmc.pylon.core.item.base.PylonCooldownable,io.github.pylonmc.pylon.core.item.base.PylonInteractor,net.kyori.adventure.key.Keyed,org.bukkit.Keyed
public class ItemMagnet
extends io.github.pylonmc.pylon.core.item.PylonItem
implements io.github.pylonmc.pylon.core.item.base.PylonInteractor
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class io.github.pylonmc.pylon.core.item.PylonItem
io.github.pylonmc.pylon.core.item.PylonItem.Companion -
Field Summary
Fields inherited from class io.github.pylonmc.pylon.core.item.PylonItem
Companion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubledouble@NotNull List<@NotNull io.github.pylonmc.pylon.core.i18n.PylonArgument> booleanChecks if an item magnet is enabledvoidonUsedToRightClick(@NotNull org.bukkit.event.player.PlayerInteractEvent event) Methods inherited from class io.github.pylonmc.pylon.core.item.PylonItem
equals, fromStack, getAddon, getKey, getPylonBlock, getResearch, getResearchBypassPermission, getSchema, getSettings, getSettings, getStack, hashCode, isDisabled, isPylonItem, place, register, register, suppressNameWarningsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.Keyed
keyMethods inherited from interface io.github.pylonmc.pylon.core.item.base.PylonCooldownable
respectCooldown
-
Constructor Details
-
ItemMagnet
public ItemMagnet(@NotNull @NotNull org.bukkit.inventory.ItemStack stack)
-
-
Method Details
-
getPlaceholders
@NotNull public @NotNull List<@NotNull io.github.pylonmc.pylon.core.i18n.PylonArgument> getPlaceholders()- Overrides:
getPlaceholdersin classio.github.pylonmc.pylon.core.item.PylonItem
-
onUsedToRightClick
public void onUsedToRightClick(@NotNull @NotNull org.bukkit.event.player.PlayerInteractEvent event) - Specified by:
onUsedToRightClickin interfaceio.github.pylonmc.pylon.core.item.base.PylonInteractor
-
isEnabled
public boolean isEnabled()Checks if an item magnet is enabled- Returns:
- true is enabled else otherwise
-
getPickupDistance
public double getPickupDistance() -
getAttractForce
public double getAttractForce()
-