Class PlayerCloseStorageEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.storage.event.PlayerCloseStorageEvent

public class PlayerCloseStorageEvent extends net.minecraftforge.eventbus.api.Event
This event is fired when a player closes a storage screen.
It is fired on the Pixelmon.EVENT_BUS.
It is not cancelable and does not have a result.
  • Nested Class Summary

    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.server.level.ServerPlayer
     
    protected final PokemonStorage
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    PlayerCloseStorageEvent(net.minecraft.server.level.ServerPlayer player, PokemonStorage storage)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.server.level.ServerPlayer
     
     

    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

    • player

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

      protected final PokemonStorage storage
  • Constructor Details

    • PlayerCloseStorageEvent

      public PlayerCloseStorageEvent(net.minecraft.server.level.ServerPlayer player, PokemonStorage storage)
  • Method Details

    • getPlayer

      public net.minecraft.server.level.ServerPlayer getPlayer()
    • getStorage

      public PokemonStorage getStorage()