Class FireproofRune
java.lang.Object
io.github.pylonmc.rebar.item.RebarItem
io.github.pylonmc.pylon.content.tools.base.Rune
io.github.pylonmc.pylon.content.tools.FireproofRune
- All Implemented Interfaces:
net.kyori.adventure.key.Keyed, org.bukkit.Keyed
-
Nested Class Summary
Nested classes/interfaces inherited from class Rune
Rune.RuneListenerNested classes/interfaces inherited from class io.github.pylonmc.rebar.item.RebarItem
io.github.pylonmc.rebar.item.RebarItem.Companion -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.papermc.paper.registry.tag.Tag<org.bukkit.damage.DamageType> static final net.kyori.adventure.text.Componentstatic final net.kyori.adventure.text.ComponentFields inherited from class Rune
DEFAULT_APPLICABLESFields inherited from class io.github.pylonmc.rebar.item.RebarItem
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) Fixes #156 - Fireproof rune can be applied multiple timesvoidonContactItem(@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.voidspawnParticle(@NotNull org.bukkit.Particle particle, @NotNull org.bukkit.Location location, int count) Methods inherited from class io.github.pylonmc.rebar.item.RebarItem
equals, fromStack, fromStack, getAddon, getKey, getPlaceholders, getRebarBlock, getResearch, getResearchBypassPermission, getSchema, getSettings, getSettings, getStack, hashCode, isDisabled, isRebarItem, isRebarItem, place, prePlace, register, register, suppressNameWarningsMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.Keyed
key
-
Field Details
-
IS_FIRE_TAG
public static final io.papermc.paper.registry.tag.Tag<org.bukkit.damage.DamageType> IS_FIRE_TAG -
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 timesChecks 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) Handles 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
-
spawnParticle
public void spawnParticle(@NotNull @NotNull org.bukkit.Particle particle, @NotNull @NotNull org.bukkit.Location location, int count)
-