Package lukeperkin.craftingtableii

Examples of lukeperkin.craftingtableii.TileEntityCraftingTableII


      if (PacketID == kPacketTypeSingleCraftingRequest && !Proxy.IsClient())
      {
        ItemStack toMake = new ItemStack(dataStream.readInt(), dataStream.readInt(), dataStream.readInt());
        int RecipeLength = dataStream.readInt();
        IRecipe RecipeToMake = Zeldo.getCraftingRecipe(toMake);
        TileEntityCraftingTableII theTile = (TileEntityCraftingTableII)(Proxy.getPlayer(network).worldObj).getBlockTileEntity(dataStream.readInt(), dataStream.readInt(), dataStream.readInt());
       
        ArrayList<ItemDetail> Temp = new ArrayList();
        for (int i=0; i<RecipeLength; i++)
        {
          Temp.add(new ItemDetail(dataStream.readInt(),dataStream.readInt(),dataStream.readInt(),null));
        }
        int RecipeIndex = Zeldo.FindRecipe(Temp, new ItemDetail(toMake));
        if (RecipeIndex > -1) {
          ContainerClevercraft.onRequestSingleRecipeOutput(Proxy.getPlayer(network), RecipeToMake, theTile, RecipeIndex);
        }

        if (Proxy.SendContainerUpdate(Proxy.getPlayer(network)))
        {
          Proxy.SendPacketTo(Proxy.getPlayer(network), SendUpdatePacket());
        }
      }
     
      if (PacketID == kPacketTypeMaximumCraftingRequest && !Proxy.IsClient())
      {
        ItemStack toMake = new ItemStack(dataStream.readInt(), dataStream.readInt(), dataStream.readInt());
        int RecipeLength = dataStream.readInt();
        IRecipe RecipeToMake = Zeldo.getCraftingRecipe(toMake);
        TileEntityCraftingTableII theTile = (TileEntityCraftingTableII)(Proxy.getPlayer(network).worldObj).getBlockTileEntity(dataStream.readInt(), dataStream.readInt(), dataStream.readInt());
       
        ArrayList Temp = new ArrayList();
        for (int i=0; i<RecipeLength; i++)
        {
          Temp.add(new ItemDetail(dataStream.readInt(),dataStream.readInt(),dataStream.readInt(),null));
View Full Code Here


      if (PacketID == kPacketTypeSingleCraftingRequest && !Proxy.IsClient())
      {
        ItemStack toMake = new ItemStack(dataStream.readInt(), dataStream.readInt(), dataStream.readInt());
        int RecipeLength = dataStream.readInt();
        IRecipe RecipeToMake = Zeldo.getCraftingRecipe(toMake);
        TileEntityCraftingTableII theTile = (TileEntityCraftingTableII)(Proxy.getPlayer(network).worldObj).getBlockTileEntity(dataStream.readInt(), dataStream.readInt(), dataStream.readInt());
       
        ArrayList<ItemDetail> Temp = new ArrayList();
        for (int i=0; i<RecipeLength; i++)
        {
          Temp.add(new ItemDetail(dataStream.readInt(),dataStream.readInt(),dataStream.readInt(),null));
        }
        int RecipeIndex = Zeldo.FindRecipe(Temp, new ItemDetail(toMake));
        if (RecipeIndex > -1) {
          ContainerClevercraft.onRequestSingleRecipeOutput(Proxy.getPlayer(network), RecipeToMake, theTile, RecipeIndex);
        }

        if (Proxy.SendContainerUpdate(Proxy.getPlayer(network)))
        {
          Proxy.SendPacketTo(Proxy.getPlayer(network), SendUpdatePacket());
        }
      }
     
      if (PacketID == kPacketTypeMaximumCraftingRequest && !Proxy.IsClient())
      {
        ItemStack toMake = new ItemStack(dataStream.readInt(), dataStream.readInt(), dataStream.readInt());
        int RecipeLength = dataStream.readInt();
        IRecipe RecipeToMake = Zeldo.getCraftingRecipe(toMake);
        TileEntityCraftingTableII theTile = (TileEntityCraftingTableII)(Proxy.getPlayer(network).worldObj).getBlockTileEntity(dataStream.readInt(), dataStream.readInt(), dataStream.readInt());
       
        ArrayList Temp = new ArrayList();
        for (int i=0; i<RecipeLength; i++)
        {
          Temp.add(new ItemDetail(dataStream.readInt(),dataStream.readInt(),dataStream.readInt(),null));
View Full Code Here

TOP

Related Classes of lukeperkin.craftingtableii.TileEntityCraftingTableII

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.