Class LureActivateEvent

java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.lures.LureActivateEvent
Direct Known Subclasses:
LureActivateEvent.Post, LureActivateEvent.Pre

public abstract class LureActivateEvent extends net.neoforged.bus.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

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Fired after the lure is activated.
    static class 
    Fired before the lure is activated.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected net.minecraft.world.item.ItemStack
     
    protected final net.minecraft.server.level.ServerPlayer
     
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
     
    net.minecraft.server.level.ServerPlayer
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • player

      protected final net.minecraft.server.level.ServerPlayer player
    • lureStack

      protected net.minecraft.world.item.ItemStack lureStack
  • Constructor Details

    • LureActivateEvent

      protected LureActivateEvent(@Nonnull 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()