Class SoulboundRune
java.lang.Object
io.github.pylonmc.pylon.core.item.PylonItem
io.github.pylonmc.pylon.base.content.tools.base.Rune
io.github.pylonmc.pylon.base.content.tools.SoulboundRune
- All Implemented Interfaces:
net.kyori.adventure.key.Keyed,org.bukkit.Keyed
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class io.github.pylonmc.pylon.base.content.tools.base.Rune
Rune.RuneListenerNested 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.base.content.tools.base.Rune
DEFAULT_APPLICABLESFields inherited from class io.github.pylonmc.pylon.core.item.PylonItem
Companion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisApplicableToTarget(@NotNull org.bukkit.event.player.PlayerDropItemEvent event, @NotNull org.bukkit.inventory.ItemStack rune, @NotNull org.bukkit.inventory.ItemStack target) Checks if the rune is applicable to the target item.voidonContactItem(@NotNull org.bukkit.event.player.PlayerDropItemEvent event, @NotNull org.bukkit.inventory.ItemStack rune, @NotNull org.bukkit.inventory.ItemStack target) Handles contacting between an item and a rune.Methods inherited from class io.github.pylonmc.pylon.core.item.PylonItem
equals, fromStack, getAddon, getKey, getPlaceholders, 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
key
-
Constructor Details
-
SoulboundRune
public SoulboundRune(org.bukkit.inventory.ItemStack stack)
-
-
Method Details
-
isApplicableToTarget
public boolean isApplicableToTarget(@NotNull @NotNull org.bukkit.event.player.PlayerDropItemEvent event, @NotNull @NotNull org.bukkit.inventory.ItemStack rune, @NotNull @NotNull org.bukkit.inventory.ItemStack target) Description copied from class:RuneChecks if the rune is applicable to the target item.- Overrides:
isApplicableToTargetin classRune- Parameters:
event- The eventrune- The rune item, amount may be > 1target- The item to handle, amount may be > 1- Returns:
- true if applicable, false otherwise
-
onContactItem
public void onContactItem(@NotNull @NotNull org.bukkit.event.player.PlayerDropItemEvent event, @NotNull @NotNull org.bukkit.inventory.ItemStack rune, @NotNull @NotNull org.bukkit.inventory.ItemStack target) Description copied from class:RuneHandles contacting between an item and a rune.- Specified by:
onContactItemin classRune- Parameters:
event- The eventrune- The rune item, amount may be > 1target- The item to handle, amount may be > 1
-