Implemented Lightning Rod, improved ore dictionary integration for dusts, nuggets and plates. Plates now registers automatically for every gem and ingot in TR. (#673)
This commit is contained in:
parent
ddb96d58ec
commit
33df1d3319
16 changed files with 288 additions and 368 deletions
|
@ -1,43 +1,23 @@
|
|||
package techreborn.blocks.generator;
|
||||
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
import reborncore.common.blocks.BlockMachineBase;
|
||||
import reborncore.common.blocks.IAdvancedRotationTexture;
|
||||
import techreborn.client.TechRebornCreativeTab;
|
||||
import techreborn.tiles.generator.TileLightningRod;
|
||||
|
||||
public class BlockLightningRod extends BlockMachineBase implements IAdvancedRotationTexture
|
||||
{
|
||||
public class BlockLightningRod extends BlockMachineBase {
|
||||
|
||||
private final String prefix = "techreborn:blocks/machine/generators/";
|
||||
|
||||
public BlockLightningRod(Material material)
|
||||
{
|
||||
public BlockLightningRod(Material material) {
|
||||
super();
|
||||
setUnlocalizedName("techreborn.lightningrod");
|
||||
setCreativeTab(TechRebornCreativeTab.instance);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getFront(boolean isActive)
|
||||
{
|
||||
return isActive ? prefix + "lightning_rod_side_on" : prefix + "lightning_rod_side_off";
|
||||
public TileEntity createNewTileEntity(World worldObj, int meta) {
|
||||
return new TileLightningRod();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSide(boolean isActive)
|
||||
{
|
||||
return isActive ? prefix + "lightning_rod_side_on" : prefix + "lightning_rod_side_off";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTop(boolean isActive)
|
||||
{
|
||||
return isActive ? prefix + "lightning_rod_top_on" : prefix + "lightning_rod_top_off";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getBottom(boolean isActive)
|
||||
{
|
||||
return prefix + "generator_machine_bottom";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue