Class FlightRing
java.lang.Object
io.github.pylonmc.rebar.item.RebarItem
io.github.pylonmc.pylon.content.talismans.Talisman
io.github.pylonmc.pylon.content.talismans.FlightRing
- All Implemented Interfaces:
io.github.pylonmc.rebar.item.base.RebarInventoryEffectItem, io.github.pylonmc.rebar.item.base.RebarInventoryTicker, io.github.pylonmc.rebar.item.base.RebarJoinHandler, net.kyori.adventure.key.Keyed, org.bukkit.Keyed
public final class FlightRing
extends Talisman
implements io.github.pylonmc.rebar.item.base.RebarJoinHandler
-
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.CompanionNested classes/interfaces inherited from interface io.github.pylonmc.rebar.item.base.RebarJoinHandler
io.github.pylonmc.rebar.item.base.RebarJoinHandler.Companion -
Field Summary
Fields inherited from class io.github.pylonmc.rebar.item.RebarItem
CompanionFields inherited from interface io.github.pylonmc.rebar.item.base.RebarInventoryEffectItem
CompanionFields inherited from interface io.github.pylonmc.rebar.item.base.RebarJoinHandler
Companion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyEffect(@NotNull org.bukkit.entity.Player player) The implementation of this method MUST call super.applyEffectorg.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.voidonJoin(@NotNull org.bukkit.event.player.PlayerJoinEvent event, @NotNull org.bukkit.event.EventPriority priority) 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, 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
-
Constructor Details
-
FlightRing
public FlightRing(@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
-
onJoin
public void onJoin(@NotNull @NotNull org.bukkit.event.player.PlayerJoinEvent event, @NotNull @NotNull org.bukkit.event.EventPriority priority) - Specified by:
onJoinin interfaceio.github.pylonmc.rebar.item.base.RebarJoinHandler
-