Class ChangeStorageEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.storage.ChangeStorageEvent

public class ChangeStorageEvent extends net.minecraftforge.eventbus.api.Event
Fired when a Pokemon's storage is changed. It will not fire if the Pokemon's previous storage was null. This event cannot be cancelled.
Since:
7th February, 2018
  • Field Details

    • oldStorage

      public final PokemonStorage oldStorage
      The previous storage object the Pokemon was in.
    • newStorage

      public final PokemonStorage newStorage
      The new storage object the Pokemon is in.
    • oldPosition

      public final StoragePosition oldPosition
      The previous storage position this Pokemon held in the old storage.
    • newPosition

      public final StoragePosition newPosition
      The new storage position this Pokemon now holds in the new storage.
    • pokemon

      public final Pokemon pokemon
      The Pokemon that has moved position.
  • Constructor Details