Class BagItemEvent.CollectItems
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
com.pixelmonmod.pixelmon.api.events.battles.BagItemEvent
com.pixelmonmod.pixelmon.api.events.battles.BagItemEvent.CollectItems
- Direct Known Subclasses:
BagItemEvent.CollectItems.Post
,BagItemEvent.CollectItems.Pre
- Enclosing class:
- BagItemEvent
The event relating to when the server determines what items the server has in their inventory to then return
to the client, so that they can be displayed on the screen during that turn.
This is called at the end of each turn (and beginning of battle) so that the inventory can be updated and cached on the client
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
This event is fired after the client has been updated for this bag section.static class
Fired just before the response packet is sent to the client Cancelling this means the client will say there is 0 use-able items in the player's inventory for this bag sectionNested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.battles.BagItemEvent
BagItemEvent.CollectItems, BagItemEvent.Identifiers, BagItemEvent.SelectItem
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 inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
battleController
-
Constructor Summary
ConstructorDescriptionCollectItems
(BattleController battleController, String identifier, net.minecraft.server.level.ServerPlayer player, BagSection section, List<ItemData> items) -
Method Summary
Methods inherited from class com.pixelmonmod.pixelmon.api.events.battles.BagItemEvent
getIdentifier, getPlayer, isIdentifier, isNormalBattle
Methods inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
getBattleController
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
items
-
-
Constructor Details
-
CollectItems
public CollectItems(BattleController battleController, String identifier, net.minecraft.server.level.ServerPlayer player, BagSection section, List<ItemData> items)
-
-
Method Details
-
getSection
-
getItems
-