Class FireproofRune

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.FireproofRune
All Implemented Interfaces:
net.kyori.adventure.key.Keyed, org.bukkit.Keyed

public class FireproofRune extends Rune
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.github.pylonmc.pylon.base.content.tools.base.Rune

    Rune.RuneListener

    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 net.kyori.adventure.text.Component
     
    static final net.kyori.adventure.text.Component
     

    Fields inherited from class io.github.pylonmc.pylon.base.content.tools.base.Rune

    DEFAULT_APPLICABLES

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

    Companion
  • Constructor Summary

    Constructors
    Constructor
    Description
    FireproofRune(@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)
    Fixes #156 - Fireproof rune can be applied multiple times
    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.
    void
    spawnParticle(@NotNull org.bukkit.Particle particle, @NotNull org.bukkit.Location location, int count)
     

    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

    • SUCCESS

      public static final net.kyori.adventure.text.Component SUCCESS
    • TOOLTIP

      public static final net.kyori.adventure.text.Component TOOLTIP
  • Constructor Details

    • FireproofRune

      public FireproofRune(@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)
      Fixes #156 - Fireproof rune can be applied multiple times

      Checks if the rune is applicable to the target item.

      Overrides:
      isApplicableToTarget in class Rune
      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 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.
      Specified by:
      onContactItem in class Rune
      Parameters:
      event - The event
      rune - The rune item, amount may be > 1
      target - The item to handle, amount may be > 1
    • spawnParticle

      public void spawnParticle(@NotNull @NotNull org.bukkit.Particle particle, @NotNull @NotNull org.bukkit.Location location, int count)