Class AttributeTalisman
java.lang.Object
io.github.pylonmc.rebar.item.RebarItem
io.github.pylonmc.pylon.content.talismans.Talisman
io.github.pylonmc.pylon.content.talismans.AttributeTalisman
- 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
- Direct Known Subclasses:
HealthTalisman, LuckTalisman, WaterBreathingTalisman
-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.pylonmc.rebar.item.RebarItem
io.github.pylonmc.rebar.item.RebarItem.CompanionNested classes/interfaces inherited from interface io.github.pylonmc.rebar.item.base.RebarInventoryEffectItem
io.github.pylonmc.rebar.item.base.RebarInventoryEffectItem.Companion -
Field Summary
FieldsFields inherited from class io.github.pylonmc.rebar.item.RebarItem
CompanionFields inherited from interface io.github.pylonmc.rebar.item.base.RebarInventoryEffectItem
Companion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyEffect(@NotNull org.bukkit.entity.Player player) The implementation of this method MUST call super.applyEffectprotected abstract org.bukkit.attribute.AttributevoidremoveEffect(@NotNull org.bukkit.entity.Player player) The implementation of this method MUST call super.removeEffectMethods inherited from class Talisman
getBaseTickInterval, getLevel, getTalismanKey, onAddedToInventory, onRemovedFromInventoryMethods 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
keyMethods inherited from interface io.github.pylonmc.rebar.item.base.RebarInventoryEffectItem
getItemKey, onTick
-
Field Details
-
attrBonus
public final double attrBonus
-
-
Constructor Details
-
AttributeTalisman
public AttributeTalisman(@NotNull @NotNull org.bukkit.inventory.ItemStack stack)
-
-
Method Details
-
applyEffect
public void applyEffect(@NotNull @NotNull org.bukkit.entity.Player player) Description copied from class:TalismanThe implementation of this method MUST call super.applyEffect- Overrides:
applyEffectin classTalisman- 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:TalismanThe implementation of this method MUST call super.removeEffect- Overrides:
removeEffectin classTalisman- Parameters:
player- The player who the effect is being removed from
-
getAttribute
protected abstract org.bukkit.attribute.Attribute getAttribute()
-