@@ -88,7 +88,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -688,6 +713,30 @@
|
||||
@@ -684,6 +709,30 @@
|
||||
entityitem.setMot((double) (-f3 * f2 * 0.3F) + Math.cos((double) f5) * (double) f6, (double) (-f1 * 0.3F + 0.1F + (this.random.nextFloat() - this.random.nextFloat()) * 0.1F), (double) (f4 * f2 * 0.3F) + Math.sin((double) f5) * (double) f6);
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
return entityitem;
|
||||
}
|
||||
}
|
||||
@@ -814,16 +863,17 @@
|
||||
@@ -810,16 +859,17 @@
|
||||
if (this.isInvulnerable(damagesource)) {
|
||||
return false;
|
||||
} else if (this.abilities.invulnerable && !damagesource.ignoresInvulnerability()) {
|
||||
@@ -139,7 +139,7 @@
|
||||
}
|
||||
|
||||
if (this.level.getDifficulty() == EnumDifficulty.EASY) {
|
||||
@@ -835,7 +885,13 @@
|
||||
@@ -831,7 +881,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -855,10 +911,29 @@
|
||||
@@ -851,10 +907,29 @@
|
||||
}
|
||||
|
||||
public boolean a(EntityHuman entityhuman) {
|
||||
@@ -187,7 +187,7 @@
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -900,8 +975,13 @@
|
||||
@@ -896,8 +971,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -202,7 +202,7 @@
|
||||
if (!this.isInvulnerable(damagesource)) {
|
||||
f = this.applyArmorModifier(damagesource, f);
|
||||
f = this.applyMagicModifier(damagesource, f);
|
||||
@@ -916,7 +996,7 @@
|
||||
@@ -912,7 +992,7 @@
|
||||
}
|
||||
|
||||
if (f != 0.0F) {
|
||||
@@ -211,7 +211,7 @@
|
||||
float f3 = this.getHealth();
|
||||
|
||||
this.setHealth(this.getHealth() - f);
|
||||
@@ -927,6 +1007,7 @@
|
||||
@@ -923,6 +1003,7 @@
|
||||
|
||||
}
|
||||
}
|
||||
@@ -219,7 +219,7 @@
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1086,7 +1167,7 @@
|
||||
@@ -1082,7 +1163,7 @@
|
||||
|
||||
f *= 0.2F + f2 * f2 * 0.8F;
|
||||
f1 *= f2;
|
||||
@@ -228,7 +228,7 @@
|
||||
if (f > 0.0F || f1 > 0.0F) {
|
||||
boolean flag = f2 > 0.9F;
|
||||
boolean flag1 = false;
|
||||
@@ -1125,8 +1206,15 @@
|
||||
@@ -1121,8 +1202,15 @@
|
||||
if (entity instanceof EntityLiving) {
|
||||
f3 = ((EntityLiving) entity).getHealth();
|
||||
if (j > 0 && !entity.isBurning()) {
|
||||
@@ -246,7 +246,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1154,8 +1242,11 @@
|
||||
@@ -1150,8 +1238,11 @@
|
||||
EntityLiving entityliving = (EntityLiving) iterator.next();
|
||||
|
||||
if (entityliving != this && entityliving != entity && !this.p(entityliving) && (!(entityliving instanceof EntityArmorStand) || !((EntityArmorStand) entityliving).isMarker()) && this.f((Entity) entityliving) < 9.0D) {
|
||||
@@ -259,7 +259,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1164,9 +1255,26 @@
|
||||
@@ -1160,9 +1251,26 @@
|
||||
}
|
||||
|
||||
if (entity instanceof EntityPlayer && entity.hurtMarked) {
|
||||
@@ -286,7 +286,7 @@
|
||||
}
|
||||
|
||||
if (flag2) {
|
||||
@@ -1211,7 +1319,14 @@
|
||||
@@ -1207,7 +1315,14 @@
|
||||
|
||||
this.a(StatisticList.DAMAGE_DEALT, Math.round(f5 * 10.0F));
|
||||
if (j > 0) {
|
||||
@@ -302,7 +302,7 @@
|
||||
}
|
||||
|
||||
if (this.level instanceof WorldServer && f5 > 2.0F) {
|
||||
@@ -1221,12 +1336,17 @@
|
||||
@@ -1217,12 +1332,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -321,7 +321,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1299,6 +1419,12 @@
|
||||
@@ -1295,6 +1415,12 @@
|
||||
public void a(ItemStack itemstack, ItemStack itemstack1, ClickAction clickaction) {}
|
||||
|
||||
public Either<EntityHuman.EnumBedResult, Unit> sleep(BlockPosition blockposition) {
|
||||
@@ -334,7 +334,7 @@
|
||||
this.entitySleep(blockposition);
|
||||
this.sleepCounter = 0;
|
||||
return Either.right(Unit.INSTANCE);
|
||||
@@ -1383,9 +1509,9 @@
|
||||
@@ -1379,9 +1505,9 @@
|
||||
super.jump();
|
||||
this.a(StatisticList.JUMP);
|
||||
if (this.isSprinting()) {
|
||||
@@ -346,7 +346,7 @@
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1419,7 +1545,11 @@
|
||||
@@ -1415,7 +1541,11 @@
|
||||
this.setMot(vec3d2.x, d3 * 0.6D, vec3d2.z);
|
||||
this.flyingSpeed = f;
|
||||
this.fallDistance = 0.0F;
|
||||
@@ -359,7 +359,7 @@
|
||||
} else {
|
||||
super.g(vec3d);
|
||||
}
|
||||
@@ -1454,19 +1584,19 @@
|
||||
@@ -1450,19 +1580,19 @@
|
||||
i = Math.round((float) Math.sqrt(d0 * d0 + d1 * d1 + d2 * d2) * 100.0F);
|
||||
if (i > 0) {
|
||||
this.a(StatisticList.SWIM_ONE_CM, i);
|
||||
@@ -382,7 +382,7 @@
|
||||
}
|
||||
} else if (this.isClimbing()) {
|
||||
if (d1 > 0.0D) {
|
||||
@@ -1477,13 +1607,13 @@
|
||||
@@ -1473,13 +1603,13 @@
|
||||
if (i > 0) {
|
||||
if (this.isSprinting()) {
|
||||
this.a(StatisticList.SPRINT_ONE_CM, i);
|
||||
@@ -399,7 +399,7 @@
|
||||
}
|
||||
}
|
||||
} else if (this.isGliding()) {
|
||||
@@ -1549,12 +1679,24 @@
|
||||
@@ -1545,12 +1675,24 @@
|
||||
}
|
||||
|
||||
public void startGliding() {
|
||||
@@ -425,7 +425,7 @@
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1644,10 +1786,21 @@
|
||||
@@ -1640,10 +1782,21 @@
|
||||
return this.experienceLevel >= 30 ? 112 + (this.experienceLevel - 30) * 9 : (this.experienceLevel >= 15 ? 37 + (this.experienceLevel - 15) * 5 : 7 + this.experienceLevel * 2);
|
||||
}
|
||||
|
||||
@@ -448,7 +448,7 @@
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1724,15 +1877,22 @@
|
||||
@@ -1720,15 +1873,22 @@
|
||||
|
||||
@Override
|
||||
public void setSlot(EnumItemSlot enumitemslot, ItemStack itemstack) {
|
||||
@@ -474,7 +474,7 @@
|
||||
this.inventory.armor.set(enumitemslot.b(), itemstack);
|
||||
}
|
||||
|
||||
@@ -1773,26 +1933,31 @@
|
||||
@@ -1769,26 +1929,31 @@
|
||||
|
||||
protected void releaseShoulderEntities() {
|
||||
if (this.timeEntitySatOnShoulder + 20L < this.level.getTime()) {
|
||||
|
||||
Reference in New Issue
Block a user