Class ExperienceTalisman
java.lang.Object
io.github.pylonmc.rebar.item.RebarItem
io.github.pylonmc.pylon.content.talismans.Talisman
io.github.pylonmc.pylon.content.talismans.ExperienceTalisman
- 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
-
Nested Class Summary
Nested ClassesNested 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
FieldsModifier and TypeFieldDescriptionstatic final org.bukkit.NamespacedKeystatic final org.bukkit.NamespacedKeyfinal floatFields 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.applyEffect@NotNull List<@NotNull io.github.pylonmc.rebar.i18n.RebarArgument> org.bukkit.NamespacedKeyGet 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.voidremoveEffect(@NotNull org.bukkit.entity.Player player) The implementation of this method MUST call super.removeEffectMethods inherited from class Talisman
getBaseTickInterval, getLevel, onAddedToInventory, onRemovedFromInventoryMethods 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, 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
-
XP_TALISMAN_KEY
public static final org.bukkit.NamespacedKey XP_TALISMAN_KEY -
XP_MULTIPLIER_KEY
public static final org.bukkit.NamespacedKey XP_MULTIPLIER_KEY -
xpMultiplier
public final float xpMultiplier
-
-
Constructor Details
-
ExperienceTalisman
public ExperienceTalisman(@NotNull @NotNull org.bukkit.inventory.ItemStack stack)
-
-
Method Details
-
getTalismanKey
public org.bukkit.NamespacedKey getTalismanKey()Description copied from class:TalismanGet 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:
getTalismanKeyin classTalisman
-
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
-
getPlaceholders
@NotNull public @NotNull List<@NotNull io.github.pylonmc.rebar.i18n.RebarArgument> getPlaceholders()- Overrides:
getPlaceholdersin classio.github.pylonmc.rebar.item.RebarItem
-