1package com.runehive.game.world.items.containers;
3import com.runehive.net.packet.out.SendMessage;
4import com.runehive.game.world.entity.mob.player.Player;
5import com.runehive.game.world.items.Item;
7import java.util.Optional;
47 public void itemUpdated(
ItemContainer container, Optional<Item> oldItem, Optional<Item> newItem,
int index,
boolean refresh,
boolean login) {
This class represents a character controlled by a player.
abstract int getWidgetId()
void bulkItemsUpdated(ItemContainer container)
Fired when an Items are added, removed, or replaced in bulk.
void sendItemsToWidget(ItemContainer container)
Queues a message that displays items from an ItemContainer on a widget.
void itemUpdated(ItemContainer container, Optional< Item > oldItem, Optional< Item > newItem, int index, boolean refresh, boolean login)
Fired when an Item is added, removed, or replaced.
ItemContainerAdapter(Player player)
Creates a new ItemContainerAdapter.
void capacityExceeded(ItemContainer container)
Fired when the capacity of container is exceeded.
abstract String getCapacityExceededMsg()
final Player player
The Player instance.
An abstraction game representing a group of Items.
void refresh(Player player, int widget)
Sends the items on the itemcontainer.
The OutgoingPacket that sends a message to a Players chatbox in the client.
A listener that is fired by ItemContainer.