summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/EntityGhast.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityGhast.java')
-rw-r--r--src/main/java/net/minecraft/server/EntityGhast.java20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/main/java/net/minecraft/server/EntityGhast.java b/src/main/java/net/minecraft/server/EntityGhast.java
index 8ec253fe..031ebb0e 100644
--- a/src/main/java/net/minecraft/server/EntityGhast.java
+++ b/src/main/java/net/minecraft/server/EntityGhast.java
@@ -26,7 +26,9 @@ public class EntityGhast extends EntityFlying implements IMonster {
}
public boolean damageEntity(DamageSource damagesource, int i) {
- if ("fireball".equals(damagesource.l()) && damagesource.getEntity() instanceof EntityHuman) {
+ if (this.isInvulnerable()) {
+ return false;
+ } else if ("fireball".equals(damagesource.l()) && damagesource.getEntity() instanceof EntityHuman) {
super.damageEntity(damagesource, 1000);
((EntityHuman) damagesource.getEntity()).a((Statistic) AchievementList.y);
return true;
@@ -51,12 +53,12 @@ public class EntityGhast extends EntityFlying implements IMonster {
this.texture = b0 == 1 ? "/mob/ghast_fire.png" : "/mob/ghast.png";
}
- protected void bk() {
+ protected void bn() {
if (!this.world.isStatic && this.world.difficulty == 0) {
this.die();
}
- this.bh();
+ this.bk();
this.f = this.g;
double d0 = this.c - this.locX;
double d1 = this.d - this.locY;
@@ -128,7 +130,7 @@ public class EntityGhast extends EntityFlying implements IMonster {
double d7 = this.target.locZ - this.locZ;
this.aw = this.yaw = -((float) Math.atan2(d5, d7)) * 180.0F / 3.1415927F;
- if (this.m(this.target)) {
+ if (this.n(this.target)) {
if (this.g == 10) {
this.world.a((EntityHuman) null, 1007, (int) this.locX, (int) this.locY, (int) this.locZ, 0);
}
@@ -182,15 +184,15 @@ public class EntityGhast extends EntityFlying implements IMonster {
return true;
}
- protected String aW() {
+ protected String aY() {
return "mob.ghast.moan";
}
- protected String aX() {
+ protected String aZ() {
return "mob.ghast.scream";
}
- protected String aY() {
+ protected String ba() {
return "mob.ghast.death";
}
@@ -219,7 +221,7 @@ public class EntityGhast extends EntityFlying implements IMonster {
// CraftBukkit end
}
- protected float aV() {
+ protected float aX() {
return 10.0F;
}
@@ -227,7 +229,7 @@ public class EntityGhast extends EntityFlying implements IMonster {
return this.random.nextInt(20) == 0 && super.canSpawn() && this.world.difficulty > 0;
}
- public int bs() {
+ public int bv() {
return 1;
}
}