TechReborn/src/main/java/techreborn/blocks/machine/BlockBlastFurnace.java

70 lines
1.8 KiB
Java
Raw Normal View History

2015-05-08 01:39:17 +02:00
package techreborn.blocks.machine;
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;
2015-05-08 01:39:17 +02:00
import techreborn.blocks.BlockMachineBase;
import techreborn.blocks.IRotationTexture;
import techreborn.client.GuiHandler;
import techreborn.tiles.TileBlastFurnace;
2015-07-02 20:51:24 +02:00
public class BlockBlastFurnace extends BlockMachineBase implements IRotationTexture {
public BlockBlastFurnace(Material material) {
super(material);
2015-11-23 20:19:18 +01:00
setUnlocalizedName("techreborn.blastfurnace");
}
@Override
public TileEntity createNewTileEntity(World world, int p_149915_2_) {
return new TileBlastFurnace();
}
@Override
public boolean onBlockActivated(World world, int x, int y, int z,
EntityPlayer player, int side, float hitX, float hitY, float hitZ) {
if (!player.isSneaking())
player.openGui(Core.INSTANCE, GuiHandler.blastFurnaceID, world, x, y,
z);
return true;
}
@Override
2015-10-07 09:34:24 +02:00
public boolean isAdvanced() {
return true;
}
2015-04-24 15:20:09 +02:00
private final String prefix = "techreborn:/blocks/machine/";
@Override
public String getFrontOff() {
return prefix + "industrial_blast_furnace_front_off";
}
@Override
public String getFrontOn() {
return prefix + "industrial_blast_furnace_front_on";
}
@Override
public String getSide() {
return prefix + "advanced_machine_side";
}
@Override
public String getTop() {
return prefix + "advanced_machine_side";
}
@Override
public String getBottom() {
return prefix + "assembling_machine_top";
}
2015-09-14 22:23:07 +02:00
}