public class LureExpiredEvent
extends net.minecraftforge.eventbus.api.Event
128
. A lure casing will be returned to the player
if this event fires without being cancelled. The casing item stack can be modified
in this event. 1
. It will also prevent a lure casing
from being given to the player. Modifier and Type | Field and Description |
---|---|
net.minecraft.item.ItemStack |
casingStack
The item stack representing the casing that will be returned to the player afterwards.
|
LureItem |
lure
The specific lure item.
|
net.minecraft.item.ItemStack |
lureStack
The item stack representing the lure.
|
PlayerPartyStorage |
party
The
PlayerPartyStorage that the lure is housed in. |
net.minecraft.entity.player.ServerPlayerEntity |
player
The player whose lure has expired.
|
Constructor and Description |
---|
LureExpiredEvent(net.minecraft.entity.player.ServerPlayerEntity player) |
Modifier and Type | Method and Description |
---|---|
LureItem.LureStrength |
getStrength()
Gets the lure strength.
|
LureItem.LureType |
getType()
Gets the lure type.
|
public final net.minecraft.entity.player.ServerPlayerEntity player
public final PlayerPartyStorage party
PlayerPartyStorage
that the lure is housed in.public final net.minecraft.item.ItemStack lureStack
public final LureItem lure
public net.minecraft.item.ItemStack casingStack
public LureExpiredEvent(net.minecraft.entity.player.ServerPlayerEntity player)
public LureItem.LureType getType()
public LureItem.LureStrength getStrength()