3 import java.util.Random;
5 import net.minecraft.src.*;
7 public class ItemGasCollectingBottle extends ItemAtomInfoContainer {
9 public ItemGasCollectingBottle(int id) {
11 this.setMaxStackSize(1);
13 this.setCreativeTab(ChemiCraft.instance.creativeTab);
17 public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer){
18 par1ItemStack.damageItem(1, par3EntityPlayer);
20 this.atomInfo.update(par2World, par3EntityPlayer);
21 if(this.atomInfo.isBelowY(129)){
22 if(!par3EntityPlayer.inventory.addItemStackToInventory(new ItemStack(ChemiCraft.instance.atomsID, 1, 7))){
23 par3EntityPlayer.dropPlayerItem(new ItemStack(ChemiCraft.instance.atomsID, 1, 7));
31 public String getTextureFile() {
32 return "/ChemiCraft/items/sprite.png";