mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-26 06:52:58 +00:00
Added set on fire effect when an entity touches the Pig Iron fluid
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user