Need help with slots

Status
This thread has been locked.
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Blood

Deactivated
Feedback score
23
Posts
497
Reactions
287
Resources
0
In the PlayerControllerMP class, you can find this snippet:
Code:
/**
* Handles slot clicks sends a packet to the server.
*/
public ItemStack windowClick(int windowId, int slotId, int mouseButtonClicked, int mode, EntityPlayer playerIn)
{
    short short1 = playerIn.openContainer.getNextTransactionID(playerIn.inventory);
    ItemStack itemstack = playerIn.openContainer.slotClick(slotId, mouseButtonClicked, mode, playerIn);
    this.netClientHandler.addToSendQueue(new C0EPacketClickWindow(windowId, slotId, mouseButtonClicked, mode, itemstack, short1));
    return itemstack;
}
If you aren't a skid you will be able to figure out how to use it.
Hint: For shift click, mode = 1.
 
Status
This thread has been locked.
Top