java.lang.Object
io.github.pylonmc.pylon.core.item.PylonItem
io.github.pylonmc.pylon.base.content.tools.base.Rune
All Implemented Interfaces:
net.kyori.adventure.key.Keyed, org.bukkit.Keyed
Direct Known Subclasses:
FireproofRune

public abstract class Rune extends io.github.pylonmc.pylon.core.item.PylonItem
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class io.github.pylonmc.pylon.core.item.PylonItem

    io.github.pylonmc.pylon.core.item.PylonItem.Companion
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final List<Class<?>>
     

    Fields inherited from class io.github.pylonmc.pylon.core.item.PylonItem

    Companion
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    boolean
    isApplicableToTarget(@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.
    abstract void
    onContactItem(@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, suppressNameWarnings

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.bukkit.Keyed

    key
  • Field Details

    • DEFAULT_APPLICABLES

      public static final List<Class<?>> DEFAULT_APPLICABLES
  • Constructor Details

    • Rune

      public Rune(@NotNull @NotNull 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)
      Checks if the rune is applicable to the target item.
      Parameters:
      event - The event
      rune - The rune item, amount may be > 1
      target - The item to handle, amount may be > 1
      Returns:
      true if applicable, false otherwise
    • onContactItem

      public abstract void onContactItem(@NotNull @NotNull org.bukkit.event.player.PlayerDropItemEvent event, @NotNull @NotNull org.bukkit.inventory.ItemStack rune, @NotNull @NotNull org.bukkit.inventory.ItemStack target)
      Handles contacting between an item and a rune.
      Parameters:
      event - The event
      rune - The rune item, amount may be > 1
      target - The item to handle, amount may be > 1