Update to Minecraft 1.10
By: md_5 <git@md-5.net>
This commit is contained in:
parent
604d9373c0
commit
a39b7e5f3a
161 changed files with 1176 additions and 1147 deletions
|
@ -13,9 +13,9 @@
|
|||
public class EntityWither extends EntityMonster implements IRangedEntity {
|
||||
|
||||
private static final DataWatcherObject<Integer> a = DataWatcher.a(EntityWither.class, DataWatcherRegistry.b);
|
||||
@@ -180,13 +186,38 @@
|
||||
if (this.da() > 0) {
|
||||
i = this.da() - 1;
|
||||
@@ -184,13 +190,38 @@
|
||||
if (this.de() > 0) {
|
||||
i = this.de() - 1;
|
||||
if (i <= 0) {
|
||||
- this.world.createExplosion(this, this.locX, this.locY + (double) this.getHeadHeight(), this.locZ, 7.0F, false, this.world.getGameRules().getBoolean("mobGriefing"));
|
||||
- this.world.a(1023, new BlockPosition(this), 0);
|
||||
|
@ -48,14 +48,14 @@
|
|||
+ // CraftBukkit end
|
||||
}
|
||||
|
||||
this.l(i);
|
||||
this.g(i);
|
||||
if (this.ticksLived % 10 == 0) {
|
||||
- this.heal(10.0F);
|
||||
+ this.heal(10.0F, EntityRegainHealthEvent.RegainReason.WITHER_SPAWN); // CraftBukkit
|
||||
}
|
||||
|
||||
} else {
|
||||
@@ -277,6 +308,11 @@
|
||||
@@ -281,6 +312,11 @@
|
||||
Block block = iblockdata.getBlock();
|
||||
|
||||
if (iblockdata.getMaterial() != Material.AIR && a(block)) {
|
||||
|
@ -67,7 +67,7 @@
|
|||
flag = this.world.setAir(blockposition, true) || flag;
|
||||
}
|
||||
}
|
||||
@@ -290,7 +326,7 @@
|
||||
@@ -294,7 +330,7 @@
|
||||
}
|
||||
|
||||
if (this.ticksLived % 20 == 0) {
|
||||
|
@ -75,4 +75,4 @@
|
|||
+ this.heal(1.0F, EntityRegainHealthEvent.RegainReason.REGEN); // CraftBukkit
|
||||
}
|
||||
|
||||
this.bF.setProgress(this.getHealth() / this.getMaxHealth());
|
||||
this.bG.setProgress(this.getHealth() / this.getMaxHealth());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue