Class LureActivateEvent.Pre
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.lures.LureActivateEvent
com.pixelmonmod.pixelmon.api.events.lures.LureActivateEvent.Pre
- Enclosing class:
- LureActivateEvent
Fired before the lure is activated.
Canceling this event will prevent the lure from being activated.
Canceling this event will prevent the lure from being activated.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.lures.LureActivateEvent
LureActivateEvent.Post, LureActivateEvent.Pre
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
Fields inherited from class com.pixelmonmod.pixelmon.api.events.lures.LureActivateEvent
lureStack, player
-
Constructor Summary
ConstructorDescriptionPre
(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.ItemStack lureStack) -
Method Summary
Modifier and TypeMethodDescriptionvoid
setLureStack
(net.minecraft.world.item.ItemStack lureStack) Methods inherited from class com.pixelmonmod.pixelmon.api.events.lures.LureActivateEvent
getLureStack, getPlayer
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
Pre
public Pre(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.ItemStack lureStack)
-
-
Method Details
-
setLureStack
public void setLureStack(net.minecraft.world.item.ItemStack lureStack)
-