public static class BagItemEvent.CollectItems.Pre extends BagItemEvent.CollectItems
Editing the list means items that aren't in the inventory will show up (so to then take the items you'd want to
modify logic in BagItemEvent.SelectItem.Pre
BagItemEvent.CollectItems.Post, BagItemEvent.CollectItems.Pre
BagItemEvent.CollectItems, BagItemEvent.Identifiers, BagItemEvent.SelectItem
items
battleController
Constructor and Description |
---|
Pre(BattleController battleController,
java.lang.String identifier,
net.minecraft.entity.player.ServerPlayerEntity player,
BagSection section) |
Pre(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 |
---|---|
void |
addItems(ItemData... itemData) |
void |
setItems(java.util.List<ItemData> itemData) |
getItems, getSection
getIdentifier, getPlayer, isIdentifier, isNormalBattle
getBattleController
public Pre(BattleController battleController, java.lang.String identifier, net.minecraft.entity.player.ServerPlayerEntity player, BagSection section, java.util.List<ItemData> items)
public Pre(BattleController battleController, java.lang.String identifier, net.minecraft.entity.player.ServerPlayerEntity player, BagSection section)