Added quamtumTank

This commit is contained in:
modmuss50 2015-04-11 10:37:47 +01:00
parent ce031af8e7
commit 1360258257
9 changed files with 373 additions and 54 deletions

View file

@ -0,0 +1,28 @@
package techreborn.blocks;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import techreborn.Core;
import techreborn.client.GuiHandler;
import techreborn.tiles.TileQuantumTank;
public class BlockQuantumTank extends BlockContainer {
public BlockQuantumTank() {
super(Material.piston);
}
@Override
public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_) {
return new TileQuantumTank();
}
@Override
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ) {
player.openGui(Core.INSTANCE, GuiHandler.quantumTankID, world, x, y, z);
return true;
}
}