Updated CraftBukkit to 1.2

This commit is contained in:
Nathan Adams
2012-03-01 10:49:23 +00:00
parent e9ca87000c
commit 543c4879fe
143 changed files with 3710 additions and 4433 deletions

View File

@@ -17,18 +17,18 @@ public abstract class EntityMonster extends EntityCreature implements IMonster {
this.aA = 5;
}
public void d() {
float f = this.a(1.0F);
public void e() {
float f = this.b(1.0F);
if (f > 0.5F) {
this.aV += 2;
}
super.d();
super.e();
}
public void y_() {
super.y_();
public void G_() {
super.G_();
if (!this.world.isStatic && this.world.difficulty == 0) {
this.die();
}
@@ -37,7 +37,7 @@ public abstract class EntityMonster extends EntityCreature implements IMonster {
protected Entity findTarget() {
EntityHuman entityhuman = this.world.findNearbyVulnerablePlayer(this, 16.0D);
return entityhuman != null && this.g(entityhuman) ? entityhuman : null;
return entityhuman != null && this.h(entityhuman) ? entityhuman : null;
}
public boolean damageEntity(DamageSource damagesource, int i) {
@@ -73,7 +73,7 @@ public abstract class EntityMonster extends EntityCreature implements IMonster {
}
}
public boolean d(Entity entity) {
public boolean a(Entity entity) {
int i = this.damage;
if (this.hasEffect(MobEffectList.INCREASE_DAMAGE)) {
@@ -108,12 +108,12 @@ public abstract class EntityMonster extends EntityCreature implements IMonster {
protected void a(Entity entity, float f) {
if (this.attackTicks <= 0 && f < 2.0F && entity.boundingBox.e > this.boundingBox.b && entity.boundingBox.b < this.boundingBox.e) {
this.attackTicks = 20;
this.d(entity);
this.a(entity);
}
}
public float a(int i, int j, int k) {
return 0.5F - this.world.m(i, j, k);
return 0.5F - this.world.p(i, j, k);
}
public void b(NBTTagCompound nbttagcompound) {
@@ -124,7 +124,7 @@ public abstract class EntityMonster extends EntityCreature implements IMonster {
super.a(nbttagcompound);
}
protected boolean z() {
protected boolean D() {
int i = MathHelper.floor(this.locX);
int j = MathHelper.floor(this.boundingBox.b);
int k = MathHelper.floor(this.locZ);
@@ -134,12 +134,12 @@ public abstract class EntityMonster extends EntityCreature implements IMonster {
} else {
int l = this.world.getLightLevel(i, j, k);
if (this.world.v()) {
int i1 = this.world.k;
if (this.world.w()) {
int i1 = this.world.f;
this.world.k = 10;
this.world.f = 10;
l = this.world.getLightLevel(i, j, k);
this.world.k = i1;
this.world.f = i1;
}
return l <= this.random.nextInt(8);
@@ -147,6 +147,6 @@ public abstract class EntityMonster extends EntityCreature implements IMonster {
}
public boolean canSpawn() {
return this.z() && super.canSpawn();
return this.D() && super.canSpawn();
}
}