diff options
| author | Foghrye4 <foghrye4@gmail.com> | 2016-04-11 19:44:54 +0300 |
|---|---|---|
| committer | Foghrye4 <foghrye4@gmail.com> | 2016-04-11 19:44:54 +0300 |
| commit | 05c78126859231a68e199dc34613689bd0978e2f (patch) | |
| tree | 050bea104a18c72905095d29f31bec2935a27a24 /ihl/enviroment/GlowningAirBlock.java | |
Initial commit
Diffstat (limited to 'ihl/enviroment/GlowningAirBlock.java')
| -rw-r--r-- | ihl/enviroment/GlowningAirBlock.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/ihl/enviroment/GlowningAirBlock.java b/ihl/enviroment/GlowningAirBlock.java new file mode 100644 index 0000000..e6dfb8e --- /dev/null +++ b/ihl/enviroment/GlowningAirBlock.java @@ -0,0 +1,34 @@ +package ihl.enviroment;
+
+import net.minecraft.block.BlockAir;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.EnumCreatureAttribute;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+
+public class GlowningAirBlock extends BlockAir
+{
+ public GlowningAirBlock()
+ {
+ super();
+ this.setBlockName("glowningAir");
+ this.setLightLevel(1.0f);
+ this.setBlockTextureName("glass");
+ }
+
+ @Override
+ public boolean isAir(IBlockAccess world, int x, int y, int z)
+ {
+ return true;
+ }
+
+ @Override
+ public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity)
+ {
+ if (entity instanceof EntityLivingBase && ((EntityLivingBase)entity).getCreatureAttribute() == EnumCreatureAttribute.UNDEAD)
+ {
+ entity.setFire(20);
+ }
+ }
+}
|
