Class BarteringTalisman

java.lang.Object
io.github.pylonmc.rebar.item.RebarItem
io.github.pylonmc.pylon.content.talismans.Talisman
io.github.pylonmc.pylon.content.talismans.BarteringTalisman
All Implemented Interfaces:
io.github.pylonmc.rebar.item.base.RebarInventoryEffectItem, io.github.pylonmc.rebar.item.base.RebarInventoryTicker, net.kyori.adventure.key.Keyed, org.bukkit.Keyed

public class BarteringTalisman extends Talisman
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     

    Nested classes/interfaces inherited from class io.github.pylonmc.rebar.item.RebarItem

    io.github.pylonmc.rebar.item.RebarItem.Companion

    Nested classes/interfaces inherited from interface io.github.pylonmc.rebar.item.base.RebarInventoryEffectItem

    io.github.pylonmc.rebar.item.base.RebarInventoryEffectItem.Companion
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.bukkit.NamespacedKey
     
    static final org.bukkit.NamespacedKey
     
    final float
     

    Fields inherited from class Talisman

    level

    Fields inherited from class io.github.pylonmc.rebar.item.RebarItem

    Companion

    Fields inherited from interface io.github.pylonmc.rebar.item.base.RebarInventoryEffectItem

    Companion
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
    applyEffect(@NotNull org.bukkit.entity.Player player)
    The implementation of this method MUST call super.applyEffect
    @NotNull List<@NotNull io.github.pylonmc.rebar.i18n.RebarArgument>
     
    org.bukkit.NamespacedKey
    Get the generic key of the talisman, should be the same between all talismans of the same type, ie all health talisman levels have the same return value for this.
    void
    removeEffect(@NotNull org.bukkit.entity.Player player)
    The implementation of this method MUST call super.removeEffect

    Methods inherited from class io.github.pylonmc.rebar.item.RebarItem

    equals, fromStack, fromStack, getAddon, getKey, getRebarBlock, getResearch, getResearchBypassPermission, getSchema, getSettings, getSettings, getStack, hashCode, isDisabled, isRebarItem, isRebarItem, place, prePlace, register, register, suppressNameWarnings

    Methods inherited from class Object

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

    Methods inherited from interface org.bukkit.Keyed

    key

    Methods inherited from interface io.github.pylonmc.rebar.item.base.RebarInventoryEffectItem

    getItemKey, onTick
  • Field Details

    • BARTERING_TALISMAN_KEY

      public static final org.bukkit.NamespacedKey BARTERING_TALISMAN_KEY
    • BARTERING_TALISMAN_NO_CONSUME_KEY

      public static final org.bukkit.NamespacedKey BARTERING_TALISMAN_NO_CONSUME_KEY
    • chanceToNotConsumeInput

      public final float chanceToNotConsumeInput
  • Constructor Details

    • BarteringTalisman

      public BarteringTalisman(@NotNull @NotNull org.bukkit.inventory.ItemStack stack)
  • Method Details

    • getPlaceholders

      @NotNull public @NotNull List<@NotNull io.github.pylonmc.rebar.i18n.RebarArgument> getPlaceholders()
      Overrides:
      getPlaceholders in class io.github.pylonmc.rebar.item.RebarItem
    • getTalismanKey

      public org.bukkit.NamespacedKey getTalismanKey()
      Description copied from class: Talisman
      Get the generic key of the talisman, should be the same between all talismans of the same type, ie all health talisman levels have the same return value for this.
      Specified by:
      getTalismanKey in class Talisman
    • applyEffect

      public void applyEffect(@NotNull @NotNull org.bukkit.entity.Player player)
      Description copied from class: Talisman
      The implementation of this method MUST call super.applyEffect
      Overrides:
      applyEffect in class Talisman
      Parameters:
      player - The player who the effect is being applied to
    • removeEffect

      public void removeEffect(@NotNull @NotNull org.bukkit.entity.Player player)
      Description copied from class: Talisman
      The implementation of this method MUST call super.removeEffect
      Overrides:
      removeEffect in class Talisman
      Parameters:
      player - The player who the effect is being removed from