OSDN Git Service

競合修正
[chemicraft/chemicraft.git] / common / chemicraft / block / BlockElectrolysisTable.java
1 package chemicraft.block;
2
3 import net.minecraft.block.BlockContainer;
4 import net.minecraft.block.material.Material;
5 import net.minecraft.entity.player.EntityPlayer;
6 import net.minecraft.tileentity.TileEntity;
7 import net.minecraft.world.World;
8 import chemicraft.ChemiCraft;
9 import chemicraft.tileentity.TileEntityElectrolysisTable;
10
11 public class BlockElectrolysisTable extends BlockContainer
12 {
13
14         public BlockElectrolysisTable(int par1, int par2, Material par3Material) {
15                 super(par1, par2, par3Material);
16                 this.setCreativeTab(ChemiCraft.creativeTab);
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.guiElectrolysisTableID, par1World, par2, par3, par4);
22                 return true;
23         }
24
25         @Override
26         public String getTextureFile(){
27                 return ChemiCraft.instance.BLOCK_CHEMICALCRAFTING_TABLE_TEXTURE;
28         }
29
30         @Override
31         public TileEntity createNewTileEntity(World var1)
32         {
33                 return new TileEntityElectrolysisTable();
34         }
35
36 }