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

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

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

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

    if (packetIn.func_148911_c() == 0) {
        entityplayer.inventoryContainer.putStacksInSlots(packetIn.getItemStacks());
    } else if (packetIn.func_148911_c() == entityplayer.openContainer.windowId) {
        entityplayer.openContainer.putStacksInSlots(packetIn.getItemStacks());
    }
}
项目:Resilience-Client-Source    文件:NetHandlerPlayClient.java   
/**
 * Handles the placement of a specified ItemStack in a specified container/inventory slot
 */
public void handleWindowItems(S30PacketWindowItems p_147241_1_)
{
    EntityClientPlayerMP var2 = this.gameController.thePlayer;

    if (p_147241_1_.func_148911_c() == 0)
    {
        var2.inventoryContainer.putStacksInSlots(p_147241_1_.func_148910_d());
    }
    else if (p_147241_1_.func_148911_c() == var2.openContainer.windowId)
    {
        var2.openContainer.putStacksInSlots(p_147241_1_.func_148910_d());
    }
}
项目:Cauldron    文件:EntityPlayerMP.java   
public void sendContainerAndContentsToPlayer(Container p_71110_1_, List p_71110_2_)
{
    this.playerNetServerHandler.sendPacket(new S30PacketWindowItems(p_71110_1_.windowId, p_71110_2_));
    this.playerNetServerHandler.sendPacket(new S2FPacketSetSlot(-1, -1, this.inventory.getItemStack()));

    if (p_71110_1_.getBukkitView() == null) return; // Cauldron - allow vanilla mods to bypass
    // CraftBukkit start - Send a Set Slot to update the crafting result slot
    if (java.util.EnumSet.of(InventoryType.CRAFTING, InventoryType.WORKBENCH).contains(p_71110_1_.getBukkitView().getType()))
    {
        this.playerNetServerHandler.sendPacket(new S2FPacketSetSlot(p_71110_1_.windowId, 0, p_71110_1_.getSlot(0).getStack()));
    }

    // CraftBukkit end
}
项目:Cauldron    文件:NetHandlerPlayClient.java   
public void handleWindowItems(S30PacketWindowItems p_147241_1_)
{
    EntityClientPlayerMP entityclientplayermp = this.gameController.thePlayer;

    if (p_147241_1_.func_148911_c() == 0)
    {
        entityclientplayermp.inventoryContainer.putStacksInSlots(p_147241_1_.func_148910_d());
    }
    else if (p_147241_1_.func_148911_c() == entityclientplayermp.openContainer.windowId)
    {
        entityclientplayermp.openContainer.putStacksInSlots(p_147241_1_.func_148910_d());
    }
}
项目:Cauldron    文件:NetHandlerPlayClient.java   
public void handleWindowItems(S30PacketWindowItems p_147241_1_)
{
    EntityClientPlayerMP entityclientplayermp = this.gameController.thePlayer;

    if (p_147241_1_.func_148911_c() == 0)
    {
        entityclientplayermp.inventoryContainer.putStacksInSlots(p_147241_1_.func_148910_d());
    }
    else if (p_147241_1_.func_148911_c() == entityclientplayermp.openContainer.windowId)
    {
        entityclientplayermp.openContainer.putStacksInSlots(p_147241_1_.func_148910_d());
    }
}
项目:DecompiledMinecraft    文件:EntityPlayerMP.java   
/**
 * update the crafting window inventory with the items in the list
 */
public void updateCraftingInventory(Container containerToSend, List<ItemStack> itemsList)
{
    this.playerNetServerHandler.sendPacket(new S30PacketWindowItems(containerToSend.windowId, itemsList));
    this.playerNetServerHandler.sendPacket(new S2FPacketSetSlot(-1, -1, this.inventory.getItemStack()));
}
项目:DecompiledMinecraft    文件:EntityPlayerMP.java   
/**
 * update the crafting window inventory with the items in the list
 */
public void updateCraftingInventory(Container containerToSend, List<ItemStack> itemsList)
{
    this.playerNetServerHandler.sendPacket(new S30PacketWindowItems(containerToSend.windowId, itemsList));
    this.playerNetServerHandler.sendPacket(new S2FPacketSetSlot(-1, -1, this.inventory.getItemStack()));
}
项目:BaseClient    文件:EntityPlayerMP.java   
/**
 * update the crafting window inventory with the items in the list
 */
public void updateCraftingInventory(Container containerToSend, List<ItemStack> itemsList)
{
    this.playerNetServerHandler.sendPacket(new S30PacketWindowItems(containerToSend.windowId, itemsList));
    this.playerNetServerHandler.sendPacket(new S2FPacketSetSlot(-1, -1, this.inventory.getItemStack()));
}
项目:BaseClient    文件:EntityPlayerMP.java   
/**
 * update the crafting window inventory with the items in the list
 */
public void updateCraftingInventory(Container containerToSend, List<ItemStack> itemsList)
{
    this.playerNetServerHandler.sendPacket(new S30PacketWindowItems(containerToSend.windowId, itemsList));
    this.playerNetServerHandler.sendPacket(new S2FPacketSetSlot(-1, -1, this.inventory.getItemStack()));
}
项目:Resilience-Client-Source    文件:EntityPlayerMP.java   
public void sendContainerAndContentsToPlayer(Container par1Container, List par2List)
{
    this.playerNetServerHandler.sendPacket(new S30PacketWindowItems(par1Container.windowId, par2List));
    this.playerNetServerHandler.sendPacket(new S2FPacketSetSlot(-1, -1, this.inventory.getItemStack()));
}
项目:Cauldron    文件:EntityPlayerMP.java   
public void sendContainerAndContentsToPlayer(Container p_71110_1_, List p_71110_2_)
{
    this.playerNetServerHandler.sendPacket(new S30PacketWindowItems(p_71110_1_.windowId, p_71110_2_));
    this.playerNetServerHandler.sendPacket(new S2FPacketSetSlot(-1, -1, this.inventory.getItemStack()));
}
项目:DecompiledMinecraft    文件:INetHandlerPlayClient.java   
/**
 * Handles the placement of a specified ItemStack in a specified container/inventory slot
 */
void handleWindowItems(S30PacketWindowItems packetIn);
项目:DecompiledMinecraft    文件:INetHandlerPlayClient.java   
/**
 * Handles the placement of a specified ItemStack in a specified container/inventory slot
 */
void handleWindowItems(S30PacketWindowItems packetIn);
项目:BaseClient    文件:INetHandlerPlayClient.java   
/**
 * Handles the placement of a specified ItemStack in a specified container/inventory slot
 */
void handleWindowItems(S30PacketWindowItems packetIn);
项目:BaseClient    文件:INetHandlerPlayClient.java   
/**
 * Handles the placement of a specified ItemStack in a specified container/inventory slot
 */
void handleWindowItems(S30PacketWindowItems packetIn);
项目:Resilience-Client-Source    文件:INetHandlerPlayClient.java   
/**
 * Handles the placement of a specified ItemStack in a specified container/inventory slot
 */
void handleWindowItems(S30PacketWindowItems var1);
项目:Cauldron    文件:INetHandlerPlayClient.java   
void handleWindowItems(S30PacketWindowItems p_147241_1_);
项目:Cauldron    文件:INetHandlerPlayClient.java   
void handleWindowItems(S30PacketWindowItems p_147241_1_);