Mappings Update

This commit is contained in:
md_5
2018-12-26 08:00:00 +11:00
parent bd36e200da
commit d05c8b1481
120 changed files with 878 additions and 1619 deletions

View File

@@ -1,7 +1,7 @@
--- a/net/minecraft/server/EntityMinecartAbstract.java
+++ b/net/minecraft/server/EntityMinecartAbstract.java
@@ -8,6 +8,15 @@
import java.util.function.ToIntFunction;
@@ -6,6 +6,15 @@
import java.util.List;
import javax.annotation.Nullable;
+// CraftBukkit start
@@ -16,7 +16,7 @@
public abstract class EntityMinecartAbstract extends Entity implements INamableTileEntity {
private static final DataWatcherObject<Integer> a = DataWatcher.a(EntityMinecartAbstract.class, DataWatcherRegistry.b);
@@ -25,6 +34,17 @@
@@ -23,6 +32,17 @@
private double aA;
private double aB;
@@ -34,7 +34,7 @@
protected EntityMinecartAbstract(EntityTypes<?> entitytypes, World world) {
super(entitytypes, world);
this.j = true;
@@ -92,6 +112,19 @@
@@ -90,6 +110,19 @@
if (this.isInvulnerable(damagesource)) {
return false;
} else {
@@ -54,7 +54,7 @@
this.k(-this.u());
this.d(10);
this.aA();
@@ -99,6 +132,15 @@
@@ -97,6 +130,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();
@@ -137,6 +179,14 @@
@@ -135,6 +177,14 @@
}
public void tick() {
@@ -85,7 +85,7 @@
if (this.getType() > 0) {
this.d(this.getType() - 1);
}
@@ -151,6 +201,8 @@
@@ -149,6 +199,8 @@
int i;
@@ -94,7 +94,7 @@
if (!this.world.isClientSide && this.world instanceof WorldServer) {
this.world.methodProfiler.enter("portal");
MinecraftServer minecraftserver = this.world.getMinecraftServer();
@@ -190,6 +242,7 @@
@@ -188,6 +240,7 @@
this.world.methodProfiler.exit();
}
@@ -102,7 +102,7 @@
if (this.world.isClientSide) {
if (this.aw > 0) {
@@ -257,6 +310,18 @@
@@ -255,6 +308,18 @@
}
this.setYawPitch(this.yaw, this.pitch);
@@ -119,9 +119,9 @@
+ }
+ // CraftBukkit end
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));
List<Entity> list = this.world.getEntities(this, this.getBoundingBox().grow(0.20000000298023224D, 0.0D, 0.20000000298023224D), IEntitySelector.a(this));
@@ -265,8 +330,24 @@
@@ -263,8 +328,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);
}
}
@@ -278,6 +359,14 @@
@@ -276,6 +357,14 @@
Entity entity1 = (Entity) iterator.next();
if (!this.w(entity1) && entity1.isCollidable() && entity1 instanceof EntityMinecartAbstract) {
@@ -161,7 +161,7 @@
entity1.collide(this);
}
}
@@ -288,7 +377,7 @@
@@ -286,7 +375,7 @@
}
protected double p() {
@@ -170,7 +170,7 @@
}
public void a(int i, int j, int k, boolean flag) {}
@@ -299,16 +388,20 @@
@@ -297,16 +386,20 @@
this.motX = MathHelper.a(this.motX, -d0, d0);
this.motZ = MathHelper.a(this.motZ, -d0, d0);
if (this.onGround) {
@@ -197,7 +197,7 @@
}
}
@@ -493,7 +586,7 @@
@@ -491,7 +584,7 @@
}
protected void r() {
@@ -206,7 +206,7 @@
this.motX *= 0.996999979019165D;
this.motY *= 0.0D;
this.motZ *= 0.996999979019165D;
@@ -590,6 +683,14 @@
@@ -588,6 +681,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;
@@ -736,4 +837,26 @@
@@ -734,4 +835,26 @@
return this.i;
}
}