diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-11-29 23:17:43 +0000 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-11-30 21:46:19 +0000 |
commit | 8fbe78a2c3b65f4140c4d0db4bed5a9bcdaf1792 (patch) | |
tree | cc229f65097c54cfcd769f686c43efa1dacc8d2f /src/main/java/net/minecraft/server/EntityMagmaCube.java | |
parent | 8665161eaa0160467ce33598c13f1aed4b549a4d (diff) | |
download | craftbukkit-8fbe78a2c3b65f4140c4d0db4bed5a9bcdaf1792.tar craftbukkit-8fbe78a2c3b65f4140c4d0db4bed5a9bcdaf1792.tar.gz craftbukkit-8fbe78a2c3b65f4140c4d0db4bed5a9bcdaf1792.tar.lz craftbukkit-8fbe78a2c3b65f4140c4d0db4bed5a9bcdaf1792.tar.xz craftbukkit-8fbe78a2c3b65f4140c4d0db4bed5a9bcdaf1792.zip |
Updated to use mc-dev rename revision 1
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityMagmaCube.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityMagmaCube.java | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/EntityMagmaCube.java b/src/main/java/net/minecraft/server/EntityMagmaCube.java new file mode 100644 index 00000000..9301a71b --- /dev/null +++ b/src/main/java/net/minecraft/server/EntityMagmaCube.java @@ -0,0 +1,82 @@ +package net.minecraft.server; + +public class EntityMagmaCube extends EntitySlime { + + public EntityMagmaCube(World world) { + super(world); + this.texture = "/mob/lava.png"; + this.fireProof = true; + this.ak = 0.2F; + } + + public boolean g() { + return this.world.difficulty > 0 && this.world.containsEntity(this.boundingBox) && this.world.getEntities(this, this.boundingBox).size() == 0 && !this.world.c(this.boundingBox); + } + + protected int O() { + return this.getSize() * 3; + } + + public float a(float f) { + return 1.0F; + } + + protected String w() { + return "flame"; + } + + protected EntitySlime y() { + return new EntityMagmaCube(this.world); + } + + protected int e() { + return 0; + } + + public boolean z() { + return false; + } + + protected int A() { + return super.A() * 4; + } + + protected void B() { + this.a *= 0.9F; + } + + protected void X() { + this.motY = (double) (0.42F + (float) this.getSize() * 0.1F); + this.cb = true; + } + + protected void b(float f) {} + + protected boolean C() { + return true; + } + + protected int D() { + return super.D() + 2; + } + + protected String m() { + return "mob.slime"; + } + + protected String n() { + return "mob.slime"; + } + + protected String E() { + return this.getSize() > 1 ? "mob.magmacube.big" : "mob.magmacube.small"; + } + + public boolean aA() { + return false; + } + + protected boolean G() { + return true; + } +} |