Class BreedingTalisman
java.lang.Object
io.github.pylonmc.rebar.item.RebarItem
io.github.pylonmc.pylon.content.talismans.Talisman
io.github.pylonmc.pylon.content.talismans.BreedingTalisman
- 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 TypeFieldDescriptionfinal floatstatic final org.bukkit.NamespacedKeystatic final org.bukkit.NamespacedKeyFields 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
-
adultChance
public final float adultChance -
BREEDING_TALISMAN_KEY
public static final org.bukkit.NamespacedKey BREEDING_TALISMAN_KEY -
BREEDING_TALISMAN_ADULT_CHANCE_KEY
public static final org.bukkit.NamespacedKey BREEDING_TALISMAN_ADULT_CHANCE_KEY
-
-
Constructor Details
-
BreedingTalisman
public BreedingTalisman(@NotNull @NotNull org.bukkit.inventory.ItemStack stack)
-
-
Method Details
-
getPlaceholders
@NotNull public @NotNull List<@NotNull io.github.pylonmc.rebar.i18n.RebarArgument> getPlaceholders()- Overrides:
getPlaceholdersin classio.github.pylonmc.rebar.item.RebarItem
-
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
-