OSDN Git Service

ts
[chemicraft/chemicraft.git] / src / ItemGasCollectingBottle.java
1 package net.minecraft.src.ChemiCraft;
2
3 import java.util.Random;
4
5 import net.minecraft.src.*;
6
7 public class ItemGasCollectingBottle extends Item {
8
9         protected ItemGasCollectingBottle(int id) {
10                 super(id);
11                 this.setMaxStackSize(1);
12                 this.setMaxDamage(2);
13                 this.setCreativeTab(CreativeTabs.tabMaterials);
14         }
15
16         @Override
17         public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer){
18
19                 par1ItemStack.damageItem(1, par3EntityPlayer);
20                 AtomInfo AtomInfo = new AtomInfo(par2World, par3EntityPlayer);
21                 AtomInfo.aboveY(par3EntityPlayer, 128, null, null, 0, 7);
22                 return par1ItemStack;
23         }
24
25         @Override
26     public String getTextureFile()
27     {
28         this.isDefaultTexture = false;
29         return "/ChemiCraft/items.png";
30     }
31
32 }