001 package net.minecraft.client.gui.inventory; 002 003 import cpw.mods.fml.relauncher.Side; 004 import cpw.mods.fml.relauncher.SideOnly; 005 import java.util.List; 006 import net.minecraft.client.Minecraft; 007 import net.minecraft.inventory.Container; 008 import net.minecraft.inventory.ICrafting; 009 import net.minecraft.item.ItemStack; 010 011 @SideOnly(Side.CLIENT) 012 public class CreativeCrafting implements ICrafting 013 { 014 private final Minecraft mc; 015 016 public CreativeCrafting(Minecraft par1) 017 { 018 this.mc = par1; 019 } 020 021 public void sendContainerAndContentsToPlayer(Container par1Container, List par2List) {} 022 023 /** 024 * Sends the contents of an inventory slot to the client-side Container. This doesn't have to match the actual 025 * contents of that slot. Args: Container, slot number, slot contents 026 */ 027 public void sendSlotContents(Container par1Container, int par2, ItemStack par3ItemStack) 028 { 029 this.mc.playerController.sendSlotPacket(par3ItemStack, par2); 030 } 031 032 /** 033 * Sends two ints to the client-side Container. Used for furnace burning time, smelting progress, brewing progress, 034 * and enchanting level. Normally the first int identifies which variable to update, and the second contains the new 035 * value. Both are truncated to shorts in non-local SMP. 036 */ 037 public void sendProgressBarUpdate(Container par1Container, int par2, int par3) {} 038 }