Mappings Update

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2018-12-26 08:00:00 +11:00
parent 239b2828db
commit d7e312278d
120 changed files with 878 additions and 1619 deletions

View File

@@ -1,7 +1,7 @@
--- a/net/minecraft/server/EntityHuman.java
+++ b/net/minecraft/server/EntityHuman.java
@@ -15,6 +15,18 @@
import java.util.function.ToIntFunction;
@@ -12,6 +12,18 @@
import java.util.function.Predicate;
import javax.annotation.Nullable;
+// CraftBukkit start
@@ -19,7 +19,7 @@
public abstract class EntityHuman extends EntityLiving {
private static final DataWatcherObject<Float> a = DataWatcher.a(EntityHuman.class, DataWatcherRegistry.c);
@@ -24,10 +36,10 @@
@@ -21,10 +33,10 @@
protected static final DataWatcherObject<NBTTagCompound> bz = DataWatcher.a(EntityHuman.class, DataWatcherRegistry.p);
protected static final DataWatcherObject<NBTTagCompound> bA = DataWatcher.a(EntityHuman.class, DataWatcherRegistry.p);
public PlayerInventory inventory = new PlayerInventory(this);
@@ -32,7 +32,7 @@
protected int bG;
public float bH;
public float bI;
@@ -60,6 +72,17 @@
@@ -57,6 +69,17 @@
@Nullable
public EntityFishingHook hookedFish;
@@ -50,7 +50,7 @@
public EntityHuman(World world, GameProfile gameprofile) {
super(EntityTypes.PLAYER, world);
this.cd = ItemStack.a;
@@ -184,7 +207,7 @@
@@ -181,7 +204,7 @@
ItemStack itemstack = this.getEquipment(EnumItemSlot.HEAD);
if (itemstack.getItem() == Items.TURTLE_HELMET && !this.a(TagsFluid.WATER)) {
@@ -59,7 +59,7 @@
}
}
@@ -369,7 +392,8 @@
@@ -366,7 +389,8 @@
if (this.world.getDifficulty() == EnumDifficulty.PEACEFUL && this.world.getGameRules().getBoolean("naturalRegeneration")) {
if (this.getHealth() < this.getMaxHealth() && this.ticksLived % 20 == 0) {
@@ -69,7 +69,7 @@
}
if (this.foodData.c() && this.ticksLived % 10 == 0) {
@@ -393,7 +417,7 @@
@@ -390,7 +414,7 @@
this.o((float) attributeinstance.getValue());
float f = MathHelper.sqrt(this.motX * this.motX + this.motZ * this.motZ);
@@ -78,7 +78,7 @@
if (f > 0.1F) {
f = 0.1F;
@@ -516,6 +540,7 @@
@@ -513,6 +537,7 @@
@Nullable
public EntityItem a(boolean flag) {
@@ -86,7 +86,7 @@
return this.a(this.inventory.splitStack(this.inventory.itemInHandIndex, flag && !this.inventory.getItemInHand().isEmpty() ? this.inventory.getItemInHand().getCount() : 1), false, true);
}
@@ -558,6 +583,30 @@
@@ -555,6 +580,30 @@
entityitem.motZ += Math.sin((double) f1) * (double) f;
}
@@ -117,7 +117,7 @@
ItemStack itemstack1 = this.a(entityitem);
if (flag1) {
@@ -652,6 +701,13 @@
@@ -649,6 +698,13 @@
this.a(true, true, false);
}
@@ -131,7 +131,7 @@
if (nbttagcompound.hasKeyOfType("SpawnX", 99) && nbttagcompound.hasKeyOfType("SpawnY", 99) && nbttagcompound.hasKeyOfType("SpawnZ", 99)) {
this.e = new BlockPosition(nbttagcompound.getInt("SpawnX"), nbttagcompound.getInt("SpawnY"), nbttagcompound.getInt("SpawnZ"));
this.f = nbttagcompound.getBoolean("SpawnForced");
@@ -702,6 +758,7 @@
@@ -699,6 +755,7 @@
if (!this.getShoulderEntityRight().isEmpty()) {
nbttagcompound.set("ShoulderEntityRight", this.getShoulderEntityRight());
}
@@ -139,7 +139,7 @@
}
@@ -719,10 +776,10 @@
@@ -716,10 +773,10 @@
this.a(true, true, false);
}
@@ -152,7 +152,7 @@
}
if (this.world.getDifficulty() == EnumDifficulty.EASY) {
@@ -734,7 +791,13 @@
@@ -731,7 +788,13 @@
}
}
@@ -167,7 +167,7 @@
}
}
}
@@ -748,10 +811,29 @@
@@ -745,10 +808,29 @@
}
public boolean a(EntityHuman entityhuman) {
@@ -200,7 +200,7 @@
}
protected void damageArmor(float f) {
@@ -794,7 +876,12 @@
@@ -791,7 +873,12 @@
return (float) i / (float) this.inventory.armor.size();
}
@@ -214,7 +214,7 @@
if (!this.isInvulnerable(damagesource)) {
f = this.applyArmorModifier(damagesource, f);
f = this.applyMagicModifier(damagesource, f);
@@ -820,6 +907,7 @@
@@ -817,6 +904,7 @@
}
}
@@ -222,7 +222,7 @@
}
public void openSign(TileEntitySign tileentitysign) {}
@@ -941,8 +1029,15 @@
@@ -938,8 +1026,15 @@
if (entity instanceof EntityLiving) {
f3 = ((EntityLiving) entity).getHealth();
if (j > 0 && !entity.isBurning()) {
@@ -240,7 +240,7 @@
}
}
@@ -973,8 +1068,11 @@
@@ -970,8 +1065,11 @@
EntityLiving entityliving = (EntityLiving) iterator.next();
if (entityliving != this && entityliving != entity && !this.r(entityliving) && (!(entityliving instanceof EntityArmorStand) || !((EntityArmorStand) entityliving).isMarker()) && this.h(entityliving) < 9.0D) {
@@ -253,7 +253,7 @@
}
}
@@ -983,11 +1081,28 @@
@@ -980,11 +1078,28 @@
}
if (entity instanceof EntityPlayer && entity.velocityChanged) {
@@ -282,7 +282,7 @@
}
if (flag2) {
@@ -1036,7 +1151,14 @@
@@ -1033,7 +1148,14 @@
this.a(StatisticList.DAMAGE_DEALT, Math.round(f5 * 10.0F));
if (j > 0) {
@@ -298,7 +298,7 @@
}
if (this.world instanceof WorldServer && f5 > 2.0F) {
@@ -1052,6 +1174,11 @@
@@ -1049,6 +1171,11 @@
if (flag4) {
entity.extinguish();
}
@@ -310,7 +310,7 @@
}
}
@@ -1113,15 +1240,15 @@
@@ -1110,15 +1237,15 @@
return this.h;
}
@@ -330,15 +330,7 @@
return EntityHuman.EnumBedResult.NOT_POSSIBLE_HERE;
}
@@ -1136,13 +1263,33 @@
if (!this.u()) {
double d0 = 8.0D;
double d1 = 5.0D;
- List list = this.world.a(EntityMonster.class, new AxisAlignedBB((double) blockposition.getX() - 8.0D, (double) blockposition.getY() - 5.0D, (double) blockposition.getZ() - 8.0D, (double) blockposition.getX() + 8.0D, (double) blockposition.getY() + 5.0D, (double) blockposition.getZ() + 8.0D), (Predicate) (new EntityHuman.c(this, null)));
+ List list = this.world.a(EntityMonster.class, new AxisAlignedBB((double) blockposition.getX() - 8.0D, (double) blockposition.getY() - 5.0D, (double) blockposition.getZ() - 8.0D, (double) blockposition.getX() + 8.0D, (double) blockposition.getY() + 5.0D, (double) blockposition.getZ() + 8.0D), (Predicate) (new EntityHuman.c(this))); // CraftBukkit - decompile error
if (!list.isEmpty()) {
return EntityHuman.EnumBedResult.NOT_SAFE;
@@ -1140,6 +1267,26 @@
}
}
}
@@ -365,7 +357,7 @@
if (this.isPassenger()) {
this.stopRiding();
@@ -1209,6 +1356,24 @@
@@ -1206,6 +1353,24 @@
this.world.everyoneSleeping();
}
@@ -390,7 +382,7 @@
this.sleepTicks = flag ? 0 : 100;
if (flag2) {
this.setRespawnPosition(this.bedPosition, false);
@@ -1260,9 +1425,11 @@
@@ -1257,9 +1422,11 @@
if (blockposition != null) {
this.e = blockposition;
this.f = flag;
@@ -402,7 +394,7 @@
}
}
@@ -1328,7 +1495,11 @@
@@ -1325,7 +1492,11 @@
this.motY = d3 * 0.6D;
this.aU = f3;
this.fallDistance = 0.0F;
@@ -415,7 +407,7 @@
} else {
super.a(f, f1, f2);
}
@@ -1628,13 +1799,17 @@
@@ -1625,13 +1796,17 @@
}
protected void releaseShoulderEntities() {
@@ -438,7 +430,7 @@
if (!this.world.isClientSide && !nbttagcompound.isEmpty()) {
Entity entity = EntityTypes.a(nbttagcompound, this.world);
@@ -1643,9 +1818,10 @@
@@ -1640,9 +1815,10 @@
}
entity.setPosition(this.locX, this.locY + 0.699999988079071D, this.locZ);