OSDN Git Service

変更点をそのままにして修正し、間違っているところを消去&修正
[chemicraft/chemicraft.git] / common / chemicraft / BlockScienceCraftingTable.java
1 package chemicraft;
2
3 import cpw.mods.fml.common.Mod;
4 import net.minecraft.src.BlockContainer;
5 import net.minecraft.src.CreativeTabs;
6 import net.minecraft.src.EntityPlayer;
7 import net.minecraft.src.Material;
8 import net.minecraft.src.TileEntity;
9 import net.minecraft.src.World;
10
11 public class BlockScienceCraftingTable extends BlockContainer {
12
13         public BlockScienceCraftingTable(int par1, int par2, Material par3Material) {
14                 super(par1, par2, par3Material);
15                 this.setCreativeTab(CreativeTabs.tabBlock);
16         }
17
18         @Override
19     public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)
20     {
21                 par5EntityPlayer.openGui(ChemiCraft.instance, ChemiCraft.guiScienceCraftingTableID, par1World, par2, par3, par4);
22         return true;
23     }
24
25         @Override
26         public TileEntity createNewTileEntity(World var1) {
27                 return new TileEntityScienceCraftingTable();
28         }
29
30 }