Java 类net.minecraft.network.packet.Packet104WindowItems 实例源码

项目:RuneCraftery    文件:NetClientHandler.java   
public void func_72486_a(Packet104WindowItems p_72486_1_) {
   EntityClientPlayerMP var2 = this.field_72563_h.field_71439_g;
   if(p_72486_1_.field_73427_a == 0) {
      var2.field_71069_bz.func_75131_a(p_72486_1_.field_73426_b);
   } else if(p_72486_1_.field_73427_a == var2.field_71070_bA.field_75152_c) {
      var2.field_71070_bA.func_75131_a(p_72486_1_.field_73426_b);
   }

}
项目:RuneCraftery    文件:NetClientHandler.java   
public void handleWindowItems(Packet104WindowItems par1Packet104WindowItems)
{
    EntityClientPlayerMP entityclientplayermp = this.mc.thePlayer;

    if (par1Packet104WindowItems.windowId == 0)
    {
        entityclientplayermp.inventoryContainer.putStacksInSlots(par1Packet104WindowItems.itemStack);
    }
    else if (par1Packet104WindowItems.windowId == entityclientplayermp.openContainer.windowId)
    {
        entityclientplayermp.openContainer.putStacksInSlots(par1Packet104WindowItems.itemStack);
    }
}
项目:BetterNutritionMod    文件:NetClientHandler.java   
public void handleWindowItems(Packet104WindowItems par1Packet104WindowItems)
{
    EntityClientPlayerMP entityclientplayermp = this.mc.thePlayer;

    if (par1Packet104WindowItems.windowId == 0)
    {
        entityclientplayermp.inventoryContainer.putStacksInSlots(par1Packet104WindowItems.itemStack);
    }
    else if (par1Packet104WindowItems.windowId == entityclientplayermp.openContainer.windowId)
    {
        entityclientplayermp.openContainer.putStacksInSlots(par1Packet104WindowItems.itemStack);
    }
}
项目:forge_world_downloader    文件:WDLNetClientHandler.java   
@Override
public void handleWindowItems(Packet104WindowItems par1Packet104WindowItems)
{
    nch.handleWindowItems(par1Packet104WindowItems);        
}
项目:RuneCraftery    文件:EntityPlayerMP.java   
public void func_71110_a(Container p_71110_1_, List p_71110_2_) {
   this.field_71135_a.func_72567_b(new Packet104WindowItems(p_71110_1_.field_75152_c, p_71110_2_));
   this.field_71135_a.func_72567_b(new Packet103SetSlot(-1, -1, this.field_71071_by.func_70445_o()));
}
项目:RuneCraftery    文件:NetHandler.java   
public void func_72486_a(Packet104WindowItems p_72486_1_) {
   this.func_72509_a(p_72486_1_);
}
项目:RuneCraftery    文件:EntityPlayerMP.java   
public void sendContainerAndContentsToPlayer(Container par1Container, List par2List)
{
    this.playerNetServerHandler.sendPacketToPlayer(new Packet104WindowItems(par1Container.windowId, par2List));
    this.playerNetServerHandler.sendPacketToPlayer(new Packet103SetSlot(-1, -1, this.inventory.getItemStack()));
}
项目:BetterNutritionMod    文件:EntityPlayerMP.java   
public void sendContainerAndContentsToPlayer(Container par1Container, List par2List)
{
    this.playerNetServerHandler.sendPacketToPlayer(new Packet104WindowItems(par1Container.windowId, par2List));
    this.playerNetServerHandler.sendPacketToPlayer(new Packet103SetSlot(-1, -1, this.inventory.getItemStack()));
}