Update to Minecraft 1.12-pre5

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2017-05-19 21:00:13 +10:00
parent 5284eb89a3
commit 530fe41851
47 changed files with 222 additions and 283 deletions

View File

@@ -33,7 +33,7 @@
protected int bA;
public float bB;
public float bC;
@@ -53,6 +66,17 @@
@@ -52,6 +65,17 @@
@Nullable
public EntityFishingHook hookedFish;
@@ -51,7 +51,7 @@
protected ItemCooldown l() {
return new ItemCooldown();
}
@@ -311,7 +335,8 @@
@@ -310,7 +334,8 @@
if (this.world.getDifficulty() == EnumDifficulty.PEACEFUL && this.world.getGameRules().getBoolean("naturalRegeneration")) {
if (this.getHealth() < this.getMaxHealth() && this.ticksLived % 20 == 0) {
@@ -61,7 +61,7 @@
}
if (this.foodData.c() && this.ticksLived % 10 == 0) {
@@ -335,7 +360,7 @@
@@ -334,7 +359,7 @@
this.m((float) attributeinstance.getValue());
float f = MathHelper.sqrt(this.motX * this.motX + this.motZ * this.motZ);
@@ -70,7 +70,7 @@
if (f > 0.1F) {
f = 0.1F;
@@ -457,6 +482,7 @@
@@ -456,6 +481,7 @@
@Nullable
public EntityItem a(boolean flag) {
@@ -78,7 +78,7 @@
return this.a(this.inventory.splitStack(this.inventory.itemInHandIndex, flag && !this.inventory.getItemInHand().isEmpty() ? this.inventory.getItemInHand().getCount() : 1), false, true);
}
@@ -499,6 +525,30 @@
@@ -498,6 +524,30 @@
entityitem.motZ += Math.sin((double) f1) * (double) f;
}
@@ -109,7 +109,7 @@
ItemStack itemstack1 = this.a(entityitem);
if (flag1) {
@@ -614,6 +664,13 @@
@@ -613,6 +663,13 @@
this.a(true, true, false);
}
@@ -123,7 +123,7 @@
if (nbttagcompound.hasKeyOfType("SpawnX", 99) && nbttagcompound.hasKeyOfType("SpawnY", 99) && nbttagcompound.hasKeyOfType("SpawnZ", 99)) {
this.d = new BlockPosition(nbttagcompound.getInt("SpawnX"), nbttagcompound.getInt("SpawnY"), nbttagcompound.getInt("SpawnZ"));
this.e = nbttagcompound.getBoolean("SpawnForced");
@@ -666,6 +723,7 @@
@@ -665,6 +722,7 @@
if (!this.getShoulderEntityRight().isEmpty()) {
nbttagcompound.set("ShoulderEntityRight", this.getShoulderEntityRight());
}
@@ -131,7 +131,7 @@
}
@@ -686,7 +744,7 @@
@@ -685,7 +743,7 @@
this.releaseShoulderEntities();
if (damagesource.r()) {
if (this.world.getDifficulty() == EnumDifficulty.PEACEFUL) {
@@ -140,7 +140,7 @@
}
if (this.world.getDifficulty() == EnumDifficulty.EASY) {
@@ -698,7 +756,7 @@
@@ -697,7 +755,7 @@
}
}
@@ -149,7 +149,7 @@
}
}
}
@@ -712,10 +770,29 @@
@@ -711,10 +769,29 @@
}
public boolean a(EntityHuman entityhuman) {
@@ -182,7 +182,7 @@
}
protected void damageArmor(float f) {
@@ -758,7 +835,12 @@
@@ -757,7 +834,12 @@
return (float) i / (float) this.inventory.armor.size();
}
@@ -196,7 +196,7 @@
if (!this.isInvulnerable(damagesource)) {
f = this.applyArmorModifier(damagesource, f);
f = this.applyMagicModifier(damagesource, f);
@@ -778,6 +860,7 @@
@@ -777,6 +859,7 @@
}
}
@@ -204,7 +204,7 @@
}
public void openSign(TileEntitySign tileentitysign) {}
@@ -899,8 +982,15 @@
@@ -898,8 +981,15 @@
if (entity instanceof EntityLiving) {
f3 = ((EntityLiving) entity).getHealth();
if (j > 0 && !entity.isBurning()) {
@@ -222,7 +222,7 @@
}
}
@@ -931,8 +1021,11 @@
@@ -930,8 +1020,11 @@
EntityLiving entityliving = (EntityLiving) iterator.next();
if (entityliving != this && entityliving != entity && !this.r(entityliving) && this.h(entityliving) < 9.0D) {
@@ -235,7 +235,7 @@
}
}
@@ -941,11 +1034,28 @@
@@ -940,11 +1033,28 @@
}
if (entity instanceof EntityPlayer && entity.velocityChanged) {
@@ -264,7 +264,7 @@
}
if (flag2) {
@@ -994,7 +1104,14 @@
@@ -993,7 +1103,14 @@
this.a(StatisticList.y, Math.round(f5 * 10.0F));
if (j > 0) {
@@ -280,7 +280,7 @@
}
if (this.world instanceof WorldServer && f5 > 2.0F) {
@@ -1010,6 +1127,11 @@
@@ -1009,6 +1126,11 @@
if (flag4) {
entity.extinguish();
}
@@ -292,7 +292,7 @@
}
}
@@ -1100,6 +1222,20 @@
@@ -1099,6 +1221,20 @@
this.stopRiding();
}
@@ -313,7 +313,7 @@
this.releaseShoulderEntities();
this.setSize(0.2F, 0.2F);
if (this.world.isLoaded(blockposition)) {
@@ -1160,6 +1296,23 @@
@@ -1159,6 +1295,23 @@
this.world.everyoneSleeping();
}
@@ -337,7 +337,7 @@
this.sleepTicks = flag ? 0 : 100;
if (flag2) {
this.setRespawnPosition(this.bedPosition, false);
@@ -1211,9 +1364,11 @@
@@ -1210,9 +1363,11 @@
if (blockposition != null) {
this.d = blockposition;
this.e = flag;
@@ -349,7 +349,7 @@
}
}
@@ -1537,13 +1692,17 @@
@@ -1540,13 +1695,17 @@
}
protected void releaseShoulderEntities() {
@@ -372,7 +372,7 @@
if (!this.world.isClientSide && !nbttagcompound.isEmpty()) {
Entity entity = EntityTypes.a(nbttagcompound, this.world);
@@ -1552,9 +1711,10 @@
@@ -1555,9 +1714,10 @@
}
entity.setPosition(this.locX, this.locY + 0.699999988079071D, this.locZ);
@@ -384,7 +384,7 @@
}
public abstract boolean isSpectator();
@@ -1756,7 +1916,7 @@
@@ -1759,7 +1919,7 @@
return entitymonster.c(this.a);
}