OSDN Git Service

化学作業台のBlock画像追加
[chemicraft/chemicraft.git] / common / chemicraft / BlockChemicalCraftingTable.java
1 package chemicraft;
2
3 import net.minecraft.src.BlockContainer;
4 import net.minecraft.src.CreativeTabs;
5 import net.minecraft.src.EntityPlayer;
6 import net.minecraft.src.Material;
7 import net.minecraft.src.TileEntity;
8 import net.minecraft.src.World;
9
10 public class BlockChemicalCraftingTable extends BlockContainer {
11
12         public BlockChemicalCraftingTable(int par1, int par2, Material par3Material){
13                 super(par1, par2, par3Material);
14                 this.setCreativeTab(CreativeTabs.tabBlock);
15         }
16
17
18
19         @Override
20         public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9){
21                 par5EntityPlayer.openGui(ChemiCraft.instance, ChemiCraft.instance.guiChemicalCraftingTableID, par1World, par2, par3, par4);
22                 return true;
23         }
24
25
26
27         @Override
28         public TileEntity createNewTileEntity(World var1){
29                 return new TileEntityChemicalCraftingTable();
30         }
31
32 }