-
Notifications
You must be signed in to change notification settings - Fork 1
setting an icon in empty pressed slot #79
Comments
or get an itemstack at a slotpos |
you can use InventoryContents#setEditable(boolean) method? I'm not sure what you are trying to do but also there is a InventoryContents#getTopInventory() |
How do I set an item onto the cursor then? |
I can't understand what you are saying, sorry. Can you explain with code and images? |
a method that lets me set the cursor item, which is the itemstack the cursor is holding |
so you mean, you are holding an item on the cursor and you want to place it into the slot which is empty right? |
Yeah pretty much:
|
you can make it with the library so, it's possible but you should write some algorithms. there is contents.getTopInventory() method so you can use it. |
Can you perhaps help me, been trying too do it for 3 days... |
probably i can't, i must finish my other projects so. |
Title says it all. I want to set the item that the cursor as an editable item in the empty slot.
The text was updated successfully, but these errors were encountered: