Interface SlotChangeHandler

    • Method Detail

      • handle

        boolean handle​(Cause cause,
                       Container container,
                       Slot slot,
                       int slotIndex,
                       ItemStackSnapshot oldStack,
                       ItemStackSnapshot newStack)
        Handler for inventory change callbacks.
        Parameters:
        cause - the cause
        container - the container
        slot - the changed slot
        slotIndex - the changed slot index
        oldStack - the old stack
        newStack - the new stack
        Returns:
        Whether the slot change is valid