Added set on fire effect when an entity touches the Pig Iron fluid

This commit is contained in:
Glassmaker committed 2014-08-09 14:54:49 +03:00
1 parent 32f41d26ba
commit 1e95a1f78f
2 files changed
+35 -1

No files matched your search

@@ -0,0 +1,33 @@
package tconstruct.smeltery.blocks;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.Entity;
import net.minecraft.world.World;
import net.minecraftforge.fluids.Fluid;
public class PigIronMoltenBlock extends TConstructFluid
{
public PigIronMoltenBlock(Fluid fluid, Material material, String texture)
{
super(fluid, material, texture);
}
@Override
public void registerBlockIcons (IIconRegister iconRegister)
{
this.stillIcon = iconRegister.registerIcon("tinker:" + texture);
this.flowIcon = iconRegister.registerIcon("tinker:" + texture);
this.getFluid().setIcons(stillIcon, flowIcon);
}
@Override
public void onEntityCollidedWithBlock (World world, int x, int y, int z, Entity entity)
{
if (!world.isRemote && entity != null)
entity.setFire(40);
}
}