Interface SlotClickHandler

    • Method Detail

      • handle

        boolean handle​(Cause cause,
                       Container container,
                       Slot slot,
                       int slotIndex,
                       ClickType<?> clickType)
        Handler for inventory click callbacks except ClickTypes.KEY_SWAP see KeySwapHandler
        Parameters:
        cause - the cause
        container - the container
        slot - the primary clicked slot
        slotIndex - the primary clicked slot index
        clickType - the type of click
        Returns:
        false to prevent the action