Class LureExpiringEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.lures.LureExpiringEvent
public class LureExpiringEvent
extends net.minecraftforge.eventbus.api.Event
Event fired as a lure is degraded over time. This event allows developers
to change the amount of damage that will be applied to the lure, or prevent damage
from occurring in the first place.
Cancelling this event will prevent any damage from being done to the lure.
Cancelling this event will prevent any damage from being done to the lure.
- Since:
- January 12, 2020
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionint
The amount of damage that will be done to the lure.final LureItem
The specific lure item.final net.minecraft.world.item.ItemStack
The item stack representing the lure.final PlayerPartyStorage
ThePlayerPartyStorage
that the lure is housed in.final net.minecraft.server.level.ServerPlayer
The player whose lure is degrading. -
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
player
public final net.minecraft.server.level.ServerPlayer playerThe player whose lure is degrading. -
party
ThePlayerPartyStorage
that the lure is housed in. -
lureStack
public final net.minecraft.world.item.ItemStack lureStackThe item stack representing the lure. -
lure
The specific lure item. -
damage
public int damageThe amount of damage that will be done to the lure. This can be changed.
-
-
Constructor Details
-
LureExpiringEvent
public LureExpiringEvent(net.minecraft.server.level.ServerPlayer player)
-
-
Method Details
-
getType
Gets the lure type. -
getStrength
Gets the lure strength.
-