Class DropResult

  • All Implemented Interfaces:

    
    public final class DropResult
    
                        

    Represents the result of a drop operation.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      DropResult(Integer addedToInv, Integer droppedToWorld, Location dropLocation, Set<Item> droppedItems)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DropResult

        DropResult(Integer addedToInv, Integer droppedToWorld, Location dropLocation, Set<Item> droppedItems)
    • Method Detail

      • 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