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
-
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
Modifier and TypeFieldDescriptionfinal StoragePosition
The new storage position this Pokemon now holds in the new storage.final PokemonStorage
The new storage object the Pokemon is in.final StoragePosition
The previous storage position this Pokemon held in the old storage.final PokemonStorage
The previous storage object the Pokemon was in.final Pokemon
The Pokemon that has moved position. -
Constructor Summary
ConstructorDescriptionChangeStorageEvent
(PokemonStorage oldStorage, StoragePosition oldPosition, PokemonStorage newStorage, StoragePosition newPosition, Pokemon pokemon) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
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)
-