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

public static class LureActivateEvent.Pre extends LureActivateEvent
Fired before the lure is 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

    Constructors
    Constructor
    Description
    Pre(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.ItemStack lureStack)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)