diff options
author | Andrew Ardill <andrew.ardill@gmail.com> | 2011-11-28 11:17:04 +1100 |
---|---|---|
committer | Andrew Ardill <andrew.ardill@gmail.com> | 2011-11-28 11:17:04 +1100 |
commit | c0073e466d3f0724078797b49a6b87c456f76055 (patch) | |
tree | 73b08750c326f4e29d3bb29c9aeaf5b615f27b63 /src/main/java/net/minecraft/server/EntityLavaSlime.java | |
parent | 9c2b11ae943c968f39d91097985ae5428ba0701b (diff) | |
download | craftbukkit-c0073e466d3f0724078797b49a6b87c456f76055.tar craftbukkit-c0073e466d3f0724078797b49a6b87c456f76055.tar.gz craftbukkit-c0073e466d3f0724078797b49a6b87c456f76055.tar.lz craftbukkit-c0073e466d3f0724078797b49a6b87c456f76055.tar.xz craftbukkit-c0073e466d3f0724078797b49a6b87c456f76055.zip |
Add CraftMagmaCube
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityLavaSlime.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityLavaSlime.java | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/EntityLavaSlime.java b/src/main/java/net/minecraft/server/EntityLavaSlime.java new file mode 100644 index 00000000..b9c61b06 --- /dev/null +++ b/src/main/java/net/minecraft/server/EntityLavaSlime.java @@ -0,0 +1,82 @@ +package net.minecraft.server; + +public class EntityLavaSlime extends EntitySlime { + + public EntityLavaSlime(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 EntityLavaSlime(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; + } +} |