Interface DropItemEvent.Pre

  • All Superinterfaces:
    Cancellable, DropItemEvent, Event
    Enclosing interface:
    DropItemEvent

    public static interface DropItemEvent.Pre
    extends DropItemEvent
    Handles ItemStacks and may be called before an Item entity is actually constructed.

    Note: This is not guaranteed to fire due to custom handling within a mod or plugin.

    Canceling this event only prevents the items from being dropped. Inventories or blocks affected are not rolled back.

    • Method Detail

      • originalDroppedItems

        java.util.List<ItemStackSnapshot> originalDroppedItems()
        Gets the original immutable list of ItemStackSnapshots to be dropped.
        Returns:
        The original list of dropped items