Class PokeStopEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.PokeStopEvent
Direct Known Subclasses:
PokeStopEvent.CooldownCheck, PokeStopEvent.Drops, PokeStopEvent.Use

public abstract class PokeStopEvent extends net.minecraftforge.eventbus.api.Event
Superclass event for actions related to PokeStops.

Subclasses: PokeStopEvent.Use, PokeStopEvent.Drops PokeStopEvent.CooldownCheck

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Event that fires when a PokeStop is used, and the cooldown is being checked Use shouldCheckCooldown to override if you want the cooldown check to happen
    static class 
    Event that fires when loot is given from a PokeStop.
    static class 
    Event that fires when a PokeStop is attempted to be used.

    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
    Modifier and Type
    Field
    Description
    protected final net.minecraft.world.entity.player.Player
     
    protected final PokeStopTileEntity
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    PokeStopEvent(net.minecraft.world.entity.player.Player player, PokeStopTileEntity pokestop)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.entity.player.Player
     
     

    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
  • Field Details

    • pokestop

      protected final PokeStopTileEntity pokestop
    • player

      protected final net.minecraft.world.entity.player.Player player
  • Constructor Details

    • PokeStopEvent

      protected PokeStopEvent(net.minecraft.world.entity.player.Player player, PokeStopTileEntity pokestop)
  • Method Details

    • getPokestop

      public PokeStopTileEntity getPokestop()
    • getPlayer

      public net.minecraft.world.entity.player.Player getPlayer()