Java 类net.minecraft.network.play.server.SPacketWindowItems 实例源码

项目:Zombe-Modpack    文件:NetHandlerPlayClient.java   
/**
 * Handles the placement of a specified ItemStack in a specified container/inventory slot
 */
public void handleWindowItems(SPacketWindowItems packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    EntityPlayer entityplayer = this.gameController.player;

    if (packetIn.getWindowId() == 0)
    {
        entityplayer.inventoryContainer.func_190896_a(packetIn.getItemStacks());
    }
    else if (packetIn.getWindowId() == entityplayer.openContainer.windowId)
    {
        entityplayer.openContainer.func_190896_a(packetIn.getItemStacks());
    }
}
项目:Backmemed    文件:NetHandlerPlayClient.java   
/**
 * Handles the placement of a specified ItemStack in a specified container/inventory slot
 */
public void handleWindowItems(SPacketWindowItems packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    EntityPlayer entityplayer = this.gameController.player;

    if (packetIn.getWindowId() == 0)
    {
        entityplayer.inventoryContainer.func_190896_a(packetIn.getItemStacks());
    }
    else if (packetIn.getWindowId() == entityplayer.openContainer.windowId)
    {
        entityplayer.openContainer.func_190896_a(packetIn.getItemStacks());
    }
}
项目:CustomWorldGen    文件:NetHandlerPlayClient.java   
/**
 * Handles the placement of a specified ItemStack in a specified container/inventory slot
 */
public void handleWindowItems(SPacketWindowItems packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    EntityPlayer entityplayer = this.gameController.thePlayer;

    if (packetIn.getWindowId() == 0)
    {
        entityplayer.inventoryContainer.putStacksInSlots(packetIn.getItemStacks());
    }
    else if (packetIn.getWindowId() == entityplayer.openContainer.windowId)
    {
        entityplayer.openContainer.putStacksInSlots(packetIn.getItemStacks());
    }
}
项目:ExpandedRailsMod    文件:NetHandlerPlayClient.java   
/**
 * Handles the placement of a specified ItemStack in a specified container/inventory slot
 */
public void handleWindowItems(SPacketWindowItems packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    EntityPlayer entityplayer = this.gameController.thePlayer;

    if (packetIn.getWindowId() == 0)
    {
        entityplayer.inventoryContainer.putStacksInSlots(packetIn.getItemStacks());
    }
    else if (packetIn.getWindowId() == entityplayer.openContainer.windowId)
    {
        entityplayer.openContainer.putStacksInSlots(packetIn.getItemStacks());
    }
}
项目:Zombe-Modpack    文件:EntityPlayerMP.java   
/**
 * update the crafting window inventory with the items in the list
 */
public void updateCraftingInventory(Container containerToSend, NonNullList<ItemStack> itemsList)
{
    this.connection.sendPacket(new SPacketWindowItems(containerToSend.windowId, itemsList));
    this.connection.sendPacket(new SPacketSetSlot(-1, -1, this.inventory.getItemStack()));
}
项目:Backmemed    文件:EntityPlayerMP.java   
/**
 * update the crafting window inventory with the items in the list
 */
public void updateCraftingInventory(Container containerToSend, NonNullList<ItemStack> itemsList)
{
    this.connection.sendPacket(new SPacketWindowItems(containerToSend.windowId, itemsList));
    this.connection.sendPacket(new SPacketSetSlot(-1, -1, this.inventory.getItemStack()));
}
项目:CustomWorldGen    文件:EntityPlayerMP.java   
/**
 * update the crafting window inventory with the items in the list
 */
public void updateCraftingInventory(Container containerToSend, List<ItemStack> itemsList)
{
    this.connection.sendPacket(new SPacketWindowItems(containerToSend.windowId, itemsList));
    this.connection.sendPacket(new SPacketSetSlot(-1, -1, this.inventory.getItemStack()));
}
项目:ExpandedRailsMod    文件:EntityPlayerMP.java   
/**
 * update the crafting window inventory with the items in the list
 */
public void updateCraftingInventory(Container containerToSend, List<ItemStack> itemsList)
{
    this.connection.sendPacket(new SPacketWindowItems(containerToSend.windowId, itemsList));
    this.connection.sendPacket(new SPacketSetSlot(-1, -1, this.inventory.getItemStack()));
}
项目:Backmemed    文件:INetHandlerPlayClient.java   
/**
 * Handles the placement of a specified ItemStack in a specified container/inventory slot
 */
void handleWindowItems(SPacketWindowItems packetIn);
项目:CustomWorldGen    文件:INetHandlerPlayClient.java   
/**
 * Handles the placement of a specified ItemStack in a specified container/inventory slot
 */
void handleWindowItems(SPacketWindowItems packetIn);