Mappings Update

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2018-12-06 10:00:00 +11:00
parent e9e6bec4e5
commit 102dee7d4f
123 changed files with 393 additions and 442 deletions

View File

@@ -34,7 +34,7 @@
protected EntityMinecartAbstract(EntityTypes<?> entitytypes, World world) {
super(entitytypes, world);
this.j = true;
@@ -98,6 +118,19 @@
@@ -92,6 +112,19 @@
if (this.isInvulnerable(damagesource)) {
return false;
} else {
@@ -54,7 +54,7 @@
this.k(-this.u());
this.d(10);
this.aA();
@@ -105,6 +138,15 @@
@@ -99,6 +132,15 @@
boolean flag = damagesource.getEntity() instanceof EntityHuman && ((EntityHuman) damagesource.getEntity()).abilities.canInstantlyBuild;
if (flag || this.getDamage() > 40.0F) {
@@ -70,7 +70,7 @@
this.ejectPassengers();
if (flag && !this.hasCustomName()) {
this.die();
@@ -143,6 +185,14 @@
@@ -137,6 +179,14 @@
}
public void tick() {
@@ -85,7 +85,7 @@
if (this.getType() > 0) {
this.d(this.getType() - 1);
}
@@ -157,6 +207,8 @@
@@ -151,6 +201,8 @@
int i;
@@ -94,7 +94,7 @@
if (!this.world.isClientSide && this.world instanceof WorldServer) {
this.world.methodProfiler.a("portal");
MinecraftServer minecraftserver = this.world.getMinecraftServer();
@@ -196,6 +248,7 @@
@@ -190,6 +242,7 @@
this.world.methodProfiler.e();
}
@@ -102,7 +102,7 @@
if (this.world.isClientSide) {
if (this.aw > 0) {
@@ -263,6 +316,18 @@
@@ -257,6 +310,18 @@
}
this.setYawPitch(this.yaw, this.pitch);
@@ -121,7 +121,7 @@
if (this.v() == EntityMinecartAbstract.EnumMinecartType.RIDEABLE && this.motX * this.motX + this.motZ * this.motZ > 0.01D) {
List list = this.world.getEntities(this, this.getBoundingBox().grow(0.20000000298023224D, 0.0D, 0.20000000298023224D), IEntitySelector.a(this));
@@ -271,8 +336,24 @@
@@ -265,8 +330,24 @@
Entity entity = (Entity) list.get(l);
if (!(entity instanceof EntityHuman) && !(entity instanceof EntityIronGolem) && !(entity instanceof EntityMinecartAbstract) && !this.isVehicle() && !entity.isPassenger()) {
@@ -146,7 +146,7 @@
entity.collide(this);
}
}
@@ -284,6 +365,14 @@
@@ -278,6 +359,14 @@
Entity entity1 = (Entity) iterator.next();
if (!this.w(entity1) && entity1.isCollidable() && entity1 instanceof EntityMinecartAbstract) {
@@ -161,7 +161,7 @@
entity1.collide(this);
}
}
@@ -294,7 +383,7 @@
@@ -288,7 +377,7 @@
}
protected double p() {
@@ -170,7 +170,7 @@
}
public void a(int i, int j, int k, boolean flag) {}
@@ -305,16 +394,20 @@
@@ -299,16 +388,20 @@
this.motX = MathHelper.a(this.motX, -d0, d0);
this.motZ = MathHelper.a(this.motZ, -d0, d0);
if (this.onGround) {
@@ -197,7 +197,7 @@
}
}
@@ -502,7 +595,7 @@
@@ -493,7 +586,7 @@
}
protected void r() {
@@ -206,7 +206,7 @@
this.motX *= 0.996999979019165D;
this.motY *= 0.0D;
this.motZ *= 0.996999979019165D;
@@ -599,6 +692,14 @@
@@ -590,6 +683,14 @@
if (!this.world.isClientSide) {
if (!entity.noclip && !this.noclip) {
if (!this.w(entity)) {
@@ -221,7 +221,7 @@
double d0 = entity.locX - this.locX;
double d1 = entity.locZ - this.locZ;
double d2 = d0 * d0 + d1 * d1;
@@ -745,4 +846,26 @@
@@ -736,4 +837,26 @@
return this.i;
}
}