Package rea.events
Class InventoryUpdateEvent
java.lang.Object
rea.events.InventoryUpdateEvent
- All Implemented Interfaces:
UpdateEvent
An event that is sent to the client to update the player's inventory.
The event contains a list of items and the item the player is holding.
- Author:
- José Paulo Leal
jpleal@fc.up.pt
-
Constructor Summary
ConstructorsConstructorDescriptionInventoryUpdateEvent
(List<Item> items, Item holding) Create an inventory update event with a list of items and the item the player is holding -
Method Summary
Modifier and TypeMethodDescriptionGet the item the player is holdingGet the player's inventory
-
Constructor Details
-
InventoryUpdateEvent
Create an inventory update event with a list of items and the item the player is holding- Parameters:
items
- the player's inventoryholding
- the item the player is holding
-
-
Method Details
-
getInventory
Get the player's inventory- Returns:
- a list of items in the player's inventory
-
getHolding
Get the item the player is holding- Returns:
- the item the player is holding
-