public static class BagItemEvent.CollectItems extends BagItemEvent
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
Modifier and Type | Class and Description |
---|---|
static class |
BagItemEvent.CollectItems.Post
This event is fired after the client has been updated for this bag section.
|
static class |
BagItemEvent.CollectItems.Pre
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 section
|
BagItemEvent.CollectItems, BagItemEvent.Identifiers, BagItemEvent.SelectItem
Modifier and Type | Field and Description |
---|---|
protected java.util.List<ItemData> |
items |
battleController
Constructor and Description |
---|
CollectItems(BattleController battleController,
java.lang.String identifier,
net.minecraft.entity.player.ServerPlayerEntity player,
BagSection section,
java.util.List<ItemData> items) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ItemData> |
getItems() |
BagSection |
getSection() |
getIdentifier, getPlayer, isIdentifier, isNormalBattle
getBattleController
protected java.util.List<ItemData> items
public CollectItems(BattleController battleController, java.lang.String identifier, net.minecraft.entity.player.ServerPlayerEntity player, BagSection section, java.util.List<ItemData> items)
public BagSection getSection()
public java.util.List<ItemData> getItems()