Class DropResult
-
- All Implemented Interfaces:
public final class DropResult
Represents the result of a drop operation.
-
-
Field Summary
Fields Modifier and Type Field Description private final Integer
addedToInv
private final Integer
droppedToWorld
private final Location
dropLocation
private final Set<Item>
droppedItems
-
Constructor Summary
Constructors Constructor Description DropResult(Integer addedToInv, Integer droppedToWorld, Location dropLocation, Set<Item> droppedItems)
-
Method Summary
Modifier and Type Method Description final Integer
getAddedToInv()
Amount of items that were added to the inventory final Integer
getDroppedToWorld()
Amount of items that were dropped to the world because the inventory was full final Location
getDropLocation()
The location where the items were dropped. final Set<Item>
getDroppedItems()
The items that were dropped to the world -
-
Method Detail
-
getAddedToInv
final Integer getAddedToInv()
Amount of items that were added to the inventory
-
getDroppedToWorld
final Integer getDroppedToWorld()
Amount of items that were dropped to the world because the inventory was full
-
getDropLocation
final Location getDropLocation()
The location where the items were dropped. Will be null if all items were added to the inventory
-
getDroppedItems
final Set<Item> getDroppedItems()
The items that were dropped to the world
-
-
-
-