Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Left mouse button without shift and not dragging inside the
- * inventory.
- * <p>
- * DEFAULT behavior: If the cursor is air, and there is a item in the
- * clicked slot, the whole itemstack is picked up. If the cursor is
- * air, and there is no item in the clicked slot, this does nothing.
- * If the cursor has an item, and there is no item in the clicked
- * slot, this deposits the whole itemstack. If the cursor has an item,
- * and the same item is in the clicked slot, as much as possible
- * ({@link Inventory#getMaxStackSize()} of the itemstack is deposited.
- * If the cursor and the clicked slot have different items, they are
- * exchanged.
- */
- LEFT,
- /**
- * Shift key plus left mouse button.
- * <p>
- * DEFAULT behavior:
- * <ul>
- * <li>If the player's inventory is open: If the clicked item is a
- * wearable piece of armor, it is equipped. If the clicked slot is
- * not on the player's hotbar, and there is room on the player's
- * hotbar, it is moved to the rightmost slot on the hotbar. If there
- * is no room on the player's hotbar, and the clicked slot is within
- * the player's inventory, this does nothing, excluding the armor
- * behavior mentioned above. If there is no room on the player's
- * hotbar, and the clicked slot is in the player's crafting grid, the
- * clicked item is moved to the first available slot in the player's
- * inventory, starting on the hotbar then starting from the top-left
- * and going across. If the clicked slot is on the hotbar, the item
- * is moved to the first available slot in the player's inventory,
- * starting on the top-left and going across.</li>
- * <li>If the player's inventory is not open: If the clicked item is
- * in the player's inventory, it is moved to the top inventory if
- * possible. If no slots in the top inventory will accept the item,
- * this does nothing. If the clicked item is in the top inventory,
- * the item will be moved to the first slot in the player's
- * inventory, starting with the right side of the hotbar, then
- * starting in the bottom-right of the player's inventory and going
- * across.</li>
- * </ul>
- */
- SHIFT_LEFT,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement