Class FarmingTalisman
java.lang.Object
io.github.pylonmc.rebar.item.RebarItem
io.github.pylonmc.pylon.content.talismans.Talisman
io.github.pylonmc.pylon.content.talismans.FarmingTalisman
- 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 TypeFieldDescriptionfloatstatic 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
-
extraCropChance
public float extraCropChance -
FARMING_TALISMAN_KEY
public static final org.bukkit.NamespacedKey FARMING_TALISMAN_KEY -
FARMING_TALISMAN_CHANCE_KEY
public static final org.bukkit.NamespacedKey FARMING_TALISMAN_CHANCE_KEY
-
-
Constructor Details
-
FarmingTalisman
public FarmingTalisman(@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
-
getPlaceholders
@NotNull public @NotNull List<@NotNull io.github.pylonmc.rebar.i18n.RebarArgument> getPlaceholders()- Overrides:
getPlaceholdersin classio.github.pylonmc.rebar.item.RebarItem
-
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
-