Class LureActivateEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.lures.LureActivateEvent
- Direct Known Subclasses:
LureActivateEvent.Post
,LureActivateEvent.Pre
public abstract class LureActivateEvent
extends net.minecraftforge.eventbus.api.Event
Event fired as a lure is activated. This event allows developers
to change the lure item that will be used, or prevent the lure from being activated
in the first place.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Fired after the lure is activated.static class
Fired before the lure is activated.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
-
Constructor Summary
ModifierConstructorDescriptionprotected
LureActivateEvent
(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.ItemStack lureStack) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStack
net.minecraft.server.level.ServerPlayer
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
player
protected final net.minecraft.server.level.ServerPlayer player -
lureStack
protected net.minecraft.world.item.ItemStack lureStack
-
-
Constructor Details
-
LureActivateEvent
protected LureActivateEvent(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.ItemStack lureStack)
-
-
Method Details
-
getPlayer
public net.minecraft.server.level.ServerPlayer getPlayer() -
getLureStack
public net.minecraft.world.item.ItemStack getLureStack()
-