Class ChangeStorageEvent
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.storage.ChangeStorageEvent
public class ChangeStorageEvent
extends net.neoforged.bus.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 Summary
FieldsModifier and TypeFieldDescriptionfinal StoragePositionThe new storage position this Pokemon now holds in the new storage.final PokemonStorageThe new storage object the Pokemon is in.final StoragePositionThe previous storage position this Pokemon held in the old storage.final PokemonStorageThe previous storage object the Pokemon was in.final PokemonThe Pokemon that has moved position. -
Constructor Summary
ConstructorsConstructorDescriptionChangeStorageEvent(PokemonStorage oldStorage, StoragePosition oldPosition, PokemonStorage newStorage, StoragePosition newPosition, Pokemon pokemon) -
Method Summary
-
Field Details
-
oldStorage
The previous storage object the Pokemon was in. -
newStorage
The new storage object the Pokemon is in. -
oldPosition
The previous storage position this Pokemon held in the old storage. -
newPosition
The new storage position this Pokemon now holds in the new storage. -
pokemon
The Pokemon that has moved position.
-
-
Constructor Details
-
ChangeStorageEvent
public ChangeStorageEvent(PokemonStorage oldStorage, StoragePosition oldPosition, PokemonStorage newStorage, StoragePosition newPosition, Pokemon pokemon)
-