@@ -253,7 +253,7 @@
|
||||
if (this.onGround) {
|
||||
block.stepOn(this.level, blockposition, iblockdata, this);
|
||||
}
|
||||
@@ -1295,6 +1471,7 @@
|
||||
@@ -1290,6 +1466,7 @@
|
||||
this.yo = d1;
|
||||
this.zo = d4;
|
||||
this.setPos(d3, d1, d4);
|
||||
@@ -261,7 +261,7 @@
|
||||
}
|
||||
|
||||
public void moveTo(Vec3D vec3d) {
|
||||
@@ -1485,6 +1662,12 @@
|
||||
@@ -1480,6 +1657,12 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -274,7 +274,7 @@
|
||||
public void awardKillScore(Entity entity, int i, DamageSource damagesource) {
|
||||
if (entity instanceof EntityPlayer) {
|
||||
CriterionTriggers.ENTITY_KILLED_PLAYER.trigger((EntityPlayer) entity, this, damagesource);
|
||||
@@ -1518,7 +1701,7 @@
|
||||
@@ -1513,7 +1696,7 @@
|
||||
} else {
|
||||
String s = this.getEncodeId();
|
||||
|
||||
@@ -283,7 +283,7 @@
|
||||
return false;
|
||||
} else {
|
||||
nbttagcompound.putString("id", s);
|
||||
@@ -1543,6 +1726,18 @@
|
||||
@@ -1538,6 +1721,18 @@
|
||||
Vec3D vec3d = this.getDeltaMovement();
|
||||
|
||||
nbttagcompound.put("Motion", this.newDoubleList(vec3d.x, vec3d.y, vec3d.z));
|
||||
@@ -302,7 +302,7 @@
|
||||
nbttagcompound.put("Rotation", this.newFloatList(this.getYRot(), this.getXRot()));
|
||||
nbttagcompound.putFloat("FallDistance", this.fallDistance);
|
||||
nbttagcompound.putShort("Fire", (short) this.remainingFireTicks);
|
||||
@@ -1551,6 +1746,22 @@
|
||||
@@ -1546,6 +1741,22 @@
|
||||
nbttagcompound.putBoolean("Invulnerable", this.invulnerable);
|
||||
nbttagcompound.putInt("PortalCooldown", this.portalCooldown);
|
||||
nbttagcompound.putUUID("UUID", this.getUUID());
|
||||
@@ -325,7 +325,7 @@
|
||||
IChatBaseComponent ichatbasecomponent = this.getCustomName();
|
||||
|
||||
if (ichatbasecomponent != null) {
|
||||
@@ -1618,6 +1829,11 @@
|
||||
@@ -1613,6 +1824,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -337,7 +337,7 @@
|
||||
return nbttagcompound;
|
||||
} catch (Throwable throwable) {
|
||||
CrashReport crashreport = CrashReport.forThrowable(throwable, "Saving entity NBT");
|
||||
@@ -1699,6 +1915,44 @@
|
||||
@@ -1696,6 +1912,44 @@
|
||||
} else {
|
||||
throw new IllegalStateException("Entity has invalid position");
|
||||
}
|
||||
@@ -382,7 +382,7 @@
|
||||
} catch (Throwable throwable) {
|
||||
CrashReport crashreport = CrashReport.forThrowable(throwable, "Loading entity NBT");
|
||||
CrashReportSystemDetails crashreportsystemdetails = crashreport.addCategory("Entity being loaded");
|
||||
@@ -1774,9 +2028,22 @@
|
||||
@@ -1771,9 +2025,22 @@
|
||||
} else if (this.level.isClientSide) {
|
||||
return null;
|
||||
} else {
|
||||
@@ -405,7 +405,7 @@
|
||||
this.level.addFreshEntity(entityitem);
|
||||
return entityitem;
|
||||
}
|
||||
@@ -1870,7 +2137,7 @@
|
||||
@@ -1867,7 +2134,7 @@
|
||||
|
||||
this.setPose(EntityPose.STANDING);
|
||||
this.vehicle = entity;
|
||||
@@ -414,7 +414,7 @@
|
||||
entity.getIndirectPassengersStream().filter((entity2) -> {
|
||||
return entity2 instanceof EntityPlayer;
|
||||
}).forEach((entity2) -> {
|
||||
@@ -1901,7 +2168,7 @@
|
||||
@@ -1898,7 +2165,7 @@
|
||||
Entity entity = this.vehicle;
|
||||
|
||||
this.vehicle = null;
|
||||
@@ -423,7 +423,7 @@
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1910,10 +2177,31 @@
|
||||
@@ -1907,10 +2174,31 @@
|
||||
this.removeVehicle();
|
||||
}
|
||||
|
||||
@@ -456,7 +456,7 @@
|
||||
if (this.passengers.isEmpty()) {
|
||||
this.passengers = ImmutableList.of(entity);
|
||||
} else {
|
||||
@@ -1929,12 +2217,32 @@
|
||||
@@ -1926,12 +2214,32 @@
|
||||
}
|
||||
|
||||
}
|
||||
@@ -490,7 +490,7 @@
|
||||
if (this.passengers.size() == 1 && this.passengers.get(0) == entity) {
|
||||
this.passengers = ImmutableList.of();
|
||||
} else {
|
||||
@@ -1945,6 +2253,7 @@
|
||||
@@ -1942,6 +2250,7 @@
|
||||
|
||||
entity.boardingCooldown = 60;
|
||||
}
|
||||
@@ -498,7 +498,7 @@
|
||||
}
|
||||
|
||||
protected boolean canAddPassenger(Entity entity) {
|
||||
@@ -2007,14 +2316,20 @@
|
||||
@@ -2004,14 +2313,20 @@
|
||||
|
||||
if (this.isInsidePortal) {
|
||||
MinecraftServer minecraftserver = worldserver.getServer();
|
||||
@@ -522,7 +522,7 @@
|
||||
this.level.getProfiler().pop();
|
||||
}
|
||||
|
||||
@@ -2132,6 +2447,13 @@
|
||||
@@ -2129,6 +2444,13 @@
|
||||
}
|
||||
|
||||
public void setSwimming(boolean flag) {
|
||||
@@ -536,7 +536,7 @@
|
||||
this.setSharedFlag(4, flag);
|
||||
}
|
||||
|
||||
@@ -2177,8 +2499,12 @@
|
||||
@@ -2174,8 +2496,12 @@
|
||||
return this.getTeam() != null ? this.getTeam().isAlliedTo(scoreboardteambase) : false;
|
||||
}
|
||||
|
||||
@@ -550,7 +550,7 @@
|
||||
}
|
||||
|
||||
public boolean getSharedFlag(int i) {
|
||||
@@ -2197,7 +2523,7 @@
|
||||
@@ -2194,7 +2520,7 @@
|
||||
}
|
||||
|
||||
public int getMaxAirSupply() {
|
||||
@@ -559,7 +559,7 @@
|
||||
}
|
||||
|
||||
public int getAirSupply() {
|
||||
@@ -2205,7 +2531,18 @@
|
||||
@@ -2202,7 +2528,18 @@
|
||||
}
|
||||
|
||||
public void setAirSupply(int i) {
|
||||
@@ -579,7 +579,7 @@
|
||||
}
|
||||
|
||||
public int getTicksFrozen() {
|
||||
@@ -2232,11 +2569,41 @@
|
||||
@@ -2229,11 +2566,41 @@
|
||||
|
||||
public void thunderHit(WorldServer worldserver, EntityLightning entitylightning) {
|
||||
this.setRemainingFireTicks(this.remainingFireTicks + 1);
|
||||
@@ -623,7 +623,7 @@
|
||||
}
|
||||
|
||||
public void onAboveBubbleCol(boolean flag) {
|
||||
@@ -2394,15 +2761,38 @@
|
||||
@@ -2391,15 +2758,38 @@
|
||||
|
||||
@Nullable
|
||||
public Entity changeDimension(WorldServer worldserver) {
|
||||
@@ -664,7 +664,7 @@
|
||||
this.level.getProfiler().popPush("reloading");
|
||||
Entity entity = this.getType().create(worldserver);
|
||||
|
||||
@@ -2411,9 +2801,17 @@
|
||||
@@ -2408,9 +2798,17 @@
|
||||
entity.moveTo(shapedetectorshape.pos.x, shapedetectorshape.pos.y, shapedetectorshape.pos.z, shapedetectorshape.yRot, entity.getXRot());
|
||||
entity.setDeltaMovement(shapedetectorshape.speed);
|
||||
worldserver.addDuringTeleport(entity);
|
||||
@@ -684,7 +684,7 @@
|
||||
}
|
||||
|
||||
this.removeAfterChangingDimensions();
|
||||
@@ -2434,20 +2832,34 @@
|
||||
@@ -2431,20 +2829,34 @@
|
||||
|
||||
@Nullable
|
||||
protected ShapeDetectorShape findDimensionEntryPoint(WorldServer worldserver) {
|
||||
@@ -724,7 +724,7 @@
|
||||
IBlockData iblockdata = this.level.getBlockState(this.portalEntrancePos);
|
||||
EnumDirection.EnumAxis enumdirection_enumaxis;
|
||||
Vec3D vec3d;
|
||||
@@ -2464,8 +2876,8 @@
|
||||
@@ -2461,8 +2873,8 @@
|
||||
vec3d = new Vec3D(0.5D, 0.0D, 0.0D);
|
||||
}
|
||||
|
||||
@@ -735,7 +735,7 @@
|
||||
}
|
||||
} else {
|
||||
BlockPosition blockposition1;
|
||||
@@ -2475,8 +2887,14 @@
|
||||
@@ -2472,8 +2884,14 @@
|
||||
} else {
|
||||
blockposition1 = worldserver.getHeightmapPos(HeightMap.Type.MOTION_BLOCKING_NO_LEAVES, worldserver.getSharedSpawnPos());
|
||||
}
|
||||
@@ -751,7 +751,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2484,8 +2902,23 @@
|
||||
@@ -2481,8 +2899,23 @@
|
||||
return BlockPortalShape.getRelativePosition(blockutil_rectangle, enumdirection_enumaxis, this.position(), this.getDimensions(this.getPose()));
|
||||
}
|
||||
|
||||
@@ -777,7 +777,7 @@
|
||||
}
|
||||
|
||||
public boolean canChangeDimensions() {
|
||||
@@ -2694,7 +3127,26 @@
|
||||
@@ -2691,7 +3124,26 @@
|
||||
}
|
||||
|
||||
public final void setBoundingBox(AxisAlignedBB axisalignedbb) {
|
||||
@@ -805,7 +805,7 @@
|
||||
}
|
||||
|
||||
protected float getEyeHeight(EntityPose entitypose, EntitySize entitysize) {
|
||||
@@ -2982,6 +3434,11 @@
|
||||
@@ -2979,6 +3431,11 @@
|
||||
vec3d = vec3d.add(vec3d1);
|
||||
++k1;
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
+ // CraftBukkit end
|
||||
boolean flag = itemstack1.isEmpty() && itemstack.isEmpty();
|
||||
|
||||
if (!flag && !ItemStack.isSameIgnoreDurability(itemstack, itemstack1)) {
|
||||
if (!flag && !ItemStack.isSameIgnoreDurability(itemstack, itemstack1) && !this.firstTick) {
|
||||
- if (enumitemslot.getType() == EnumItemSlot.Function.ARMOR) {
|
||||
+ if (enumitemslot.getType() == EnumItemSlot.Function.ARMOR && !silent) { // CraftBukkit
|
||||
this.playEquipSound(itemstack1);
|
||||
@@ -815,7 +815,7 @@
|
||||
this.setSharedFlag(7, false);
|
||||
}
|
||||
} else {
|
||||
@@ -2769,6 +3201,7 @@
|
||||
@@ -2772,6 +3204,7 @@
|
||||
}
|
||||
|
||||
if (!this.level.isClientSide) {
|
||||
@@ -823,7 +823,7 @@
|
||||
this.setSharedFlag(7, flag);
|
||||
}
|
||||
|
||||
@@ -2928,14 +3361,21 @@
|
||||
@@ -2931,14 +3364,21 @@
|
||||
|
||||
@Override
|
||||
public boolean isPickable() {
|
||||
@@ -847,7 +847,7 @@
|
||||
@Override
|
||||
public float getYHeadRot() {
|
||||
return this.yHeadRot;
|
||||
@@ -3130,7 +3570,25 @@
|
||||
@@ -3133,7 +3573,25 @@
|
||||
} else {
|
||||
if (!this.useItem.isEmpty() && this.isUsingItem()) {
|
||||
this.triggerItemUseEffects(this.useItem, 16);
|
||||
@@ -874,7 +874,7 @@
|
||||
|
||||
if (itemstack != this.useItem) {
|
||||
this.setItemInHand(enumhand, itemstack);
|
||||
@@ -3208,6 +3666,12 @@
|
||||
@@ -3211,6 +3669,12 @@
|
||||
}
|
||||
|
||||
public boolean randomTeleport(double d0, double d1, double d2, boolean flag) {
|
||||
@@ -887,7 +887,7 @@
|
||||
double d3 = this.getX();
|
||||
double d4 = this.getY();
|
||||
double d5 = this.getZ();
|
||||
@@ -3232,16 +3696,41 @@
|
||||
@@ -3235,16 +3699,41 @@
|
||||
}
|
||||
|
||||
if (flag2) {
|
||||
@@ -932,7 +932,7 @@
|
||||
} else {
|
||||
if (flag) {
|
||||
world.broadcastEntityEvent(this, (byte) 46);
|
||||
@@ -3251,7 +3740,7 @@
|
||||
@@ -3254,7 +3743,7 @@
|
||||
((EntityCreature) this).getNavigation().stop();
|
||||
}
|
||||
|
||||
@@ -941,7 +941,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3334,7 +3823,7 @@
|
||||
@@ -3337,7 +3826,7 @@
|
||||
}
|
||||
|
||||
public void stopSleeping() {
|
||||
@@ -950,7 +950,7 @@
|
||||
World world = this.level;
|
||||
|
||||
java.util.Objects.requireNonNull(this.level);
|
||||
@@ -3366,7 +3855,7 @@
|
||||
@@ -3369,7 +3858,7 @@
|
||||
|
||||
@Nullable
|
||||
public EnumDirection getBedOrientation() {
|
||||
@@ -959,7 +959,7 @@
|
||||
|
||||
return blockposition != null ? BlockBed.getBedOrientation(this.level, blockposition) : null;
|
||||
}
|
||||
@@ -3414,7 +3903,7 @@
|
||||
@@ -3417,7 +3906,7 @@
|
||||
Pair<MobEffect, Float> pair = (Pair) iterator.next();
|
||||
|
||||
if (!world.isClientSide && pair.getFirst() != null && world.random.nextFloat() < (Float) pair.getSecond()) {
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
public EntityItem(EntityTypes<? extends EntityItem> entitytypes, World world) {
|
||||
super(entitytypes, world);
|
||||
@@ -105,9 +112,12 @@
|
||||
@@ -103,9 +110,12 @@
|
||||
this.discard();
|
||||
} else {
|
||||
super.tick();
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
this.xo = this.getX();
|
||||
this.yo = this.getY();
|
||||
@@ -157,9 +167,11 @@
|
||||
@@ -155,9 +165,11 @@
|
||||
this.mergeWithNeighbours();
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
|
||||
this.hasImpulse |= this.updateInWaterStateAndDoFluidPushing();
|
||||
if (!this.level.isClientSide) {
|
||||
@@ -171,6 +183,12 @@
|
||||
@@ -169,6 +181,12 @@
|
||||
}
|
||||
|
||||
if (!this.level.isClientSide && this.age >= 6000) {
|
||||
@@ -62,7 +62,7 @@
|
||||
this.discard();
|
||||
}
|
||||
|
||||
@@ -246,10 +264,11 @@
|
||||
@@ -244,10 +262,11 @@
|
||||
private static void merge(EntityItem entityitem, ItemStack itemstack, ItemStack itemstack1) {
|
||||
ItemStack itemstack2 = merge(itemstack, itemstack1, 64);
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
merge(entityitem, itemstack, itemstack1);
|
||||
entityitem.pickupDelay = Math.max(entityitem.pickupDelay, entityitem1.pickupDelay);
|
||||
entityitem.age = Math.min(entityitem.age, entityitem1.age);
|
||||
@@ -275,6 +294,11 @@
|
||||
@@ -273,6 +292,11 @@
|
||||
} else if (this.level.isClientSide) {
|
||||
return true;
|
||||
} else {
|
||||
@@ -87,7 +87,7 @@
|
||||
this.markHurt();
|
||||
this.health = (int) ((float) this.health - f);
|
||||
this.gameEvent(GameEvent.ENTITY_DAMAGE, damagesource.getEntity());
|
||||
@@ -338,6 +362,46 @@
|
||||
@@ -336,6 +360,46 @@
|
||||
Item item = itemstack.getItem();
|
||||
int i = itemstack.getCount();
|
||||
|
||||
@@ -134,7 +134,7 @@
|
||||
if (this.pickupDelay == 0 && (this.owner == null || this.owner.equals(entityhuman.getUUID())) && entityhuman.getInventory().add(itemstack)) {
|
||||
entityhuman.take(this, i);
|
||||
if (itemstack.isEmpty()) {
|
||||
@@ -381,7 +445,9 @@
|
||||
@@ -379,7 +443,9 @@
|
||||
}
|
||||
|
||||
public void setItem(ItemStack itemstack) {
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -248,7 +271,7 @@
|
||||
@@ -249,7 +272,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/world/entity/player/EntityHuman.java
|
||||
+++ b/net/minecraft/world/entity/player/EntityHuman.java
|
||||
@@ -116,6 +116,20 @@
|
||||
@@ -117,6 +117,20 @@
|
||||
import net.minecraft.world.scores.ScoreboardTeamBase;
|
||||
import org.slf4j.Logger;
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
public abstract class EntityHuman extends EntityLiving {
|
||||
|
||||
private static final Logger LOGGER = LogUtils.getLogger();
|
||||
@@ -129,7 +143,8 @@
|
||||
@@ -130,7 +144,8 @@
|
||||
public static final float SWIMMING_BB_HEIGHT = 0.6F;
|
||||
public static final float DEFAULT_EYE_HEIGHT = 1.62F;
|
||||
public static final EntitySize STANDING_DIMENSIONS = EntitySize.scalable(0.6F, 1.8F);
|
||||
@@ -31,7 +31,7 @@
|
||||
private static final int FLY_ACHIEVEMENT_SPEED = 25;
|
||||
private static final DataWatcherObject<Float> DATA_PLAYER_ABSORPTION_ID = DataWatcher.defineId(EntityHuman.class, DataWatcherRegistry.FLOAT);
|
||||
private static final DataWatcherObject<Integer> DATA_SCORE_ID = DataWatcher.defineId(EntityHuman.class, DataWatcherRegistry.INT);
|
||||
@@ -139,10 +154,10 @@
|
||||
@@ -140,10 +155,10 @@
|
||||
protected static final DataWatcherObject<NBTTagCompound> DATA_SHOULDER_RIGHT = DataWatcher.defineId(EntityHuman.class, DataWatcherRegistry.COMPOUND_TAG);
|
||||
private long timeEntitySatOnShoulder;
|
||||
private final PlayerInventory inventory = new PlayerInventory(this);
|
||||
@@ -44,7 +44,7 @@
|
||||
protected WardenSpawnTracker wardenSpawnTracker = new WardenSpawnTracker(0, 0, 0);
|
||||
protected int jumpTriggerTime;
|
||||
public float oBob;
|
||||
@@ -173,6 +188,16 @@
|
||||
@@ -174,6 +189,16 @@
|
||||
@Nullable
|
||||
public EntityFishingHook fishing;
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
public EntityHuman(World world, BlockPosition blockposition, float f, GameProfile gameprofile, @Nullable ProfilePublicKey profilepublickey) {
|
||||
super(EntityTypes.PLAYER, world);
|
||||
this.lastItemInMainHand = ItemStack.EMPTY;
|
||||
@@ -314,7 +339,7 @@
|
||||
@@ -315,7 +340,7 @@
|
||||
ItemStack itemstack = this.getItemBySlot(EnumItemSlot.HEAD);
|
||||
|
||||
if (itemstack.is(Items.TURTLE_HELMET) && !this.isEyeInFluid(TagsFluid.WATER)) {
|
||||
@@ -70,7 +70,7 @@
|
||||
}
|
||||
|
||||
}
|
||||
@@ -506,7 +531,8 @@
|
||||
@@ -507,7 +532,8 @@
|
||||
|
||||
if (this.level.getDifficulty() == EnumDifficulty.PEACEFUL && this.level.getGameRules().getBoolean(GameRules.RULE_NATURAL_REGENERATION)) {
|
||||
if (this.getHealth() < this.getMaxHealth() && this.tickCount % 20 == 0) {
|
||||
@@ -80,7 +80,7 @@
|
||||
}
|
||||
|
||||
if (this.foodData.needsFood() && this.tickCount % 10 == 0) {
|
||||
@@ -670,6 +696,13 @@
|
||||
@@ -671,6 +697,13 @@
|
||||
|
||||
@Nullable
|
||||
public EntityItem drop(ItemStack itemstack, boolean flag, boolean flag1) {
|
||||
@@ -94,7 +94,7 @@
|
||||
if (itemstack.isEmpty()) {
|
||||
return null;
|
||||
} else {
|
||||
@@ -704,6 +737,33 @@
|
||||
@@ -705,6 +738,33 @@
|
||||
entityitem.setDeltaMovement((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);
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@
|
||||
return entityitem;
|
||||
}
|
||||
}
|
||||
@@ -780,7 +840,7 @@
|
||||
@@ -781,7 +841,7 @@
|
||||
this.setScore(nbttagcompound.getInt("Score"));
|
||||
this.foodData.readAdditionalSaveData(nbttagcompound);
|
||||
if (nbttagcompound.contains("warden_spawn_tracker", 10)) {
|
||||
@@ -137,7 +137,7 @@
|
||||
Logger logger = EntityHuman.LOGGER;
|
||||
|
||||
Objects.requireNonNull(logger);
|
||||
@@ -804,7 +864,7 @@
|
||||
@@ -805,7 +865,7 @@
|
||||
}
|
||||
|
||||
if (nbttagcompound.contains("LastDeathLocation", 10)) {
|
||||
@@ -146,7 +146,7 @@
|
||||
Logger logger1 = EntityHuman.LOGGER;
|
||||
|
||||
Objects.requireNonNull(logger1);
|
||||
@@ -826,7 +886,7 @@
|
||||
@@ -827,7 +887,7 @@
|
||||
nbttagcompound.putInt("XpSeed", this.enchantmentSeed);
|
||||
nbttagcompound.putInt("Score", this.getScore());
|
||||
this.foodData.addAdditionalSaveData(nbttagcompound);
|
||||
@@ -155,7 +155,7 @@
|
||||
Logger logger = EntityHuman.LOGGER;
|
||||
|
||||
Objects.requireNonNull(logger);
|
||||
@@ -844,7 +904,7 @@
|
||||
@@ -845,7 +905,7 @@
|
||||
}
|
||||
|
||||
this.getLastDeathLocation().flatMap((globalpos) -> {
|
||||
@@ -164,7 +164,7 @@
|
||||
Logger logger1 = EntityHuman.LOGGER;
|
||||
|
||||
Objects.requireNonNull(logger1);
|
||||
@@ -871,12 +931,12 @@
|
||||
@@ -872,12 +932,12 @@
|
||||
return false;
|
||||
} else {
|
||||
if (!this.level.isClientSide) {
|
||||
@@ -179,7 +179,7 @@
|
||||
}
|
||||
|
||||
if (this.level.getDifficulty() == EnumDifficulty.EASY) {
|
||||
@@ -888,7 +948,13 @@
|
||||
@@ -889,7 +949,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -194,7 +194,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -908,10 +974,29 @@
|
||||
@@ -909,10 +975,29 @@
|
||||
}
|
||||
|
||||
public boolean canHarmPlayer(EntityHuman entityhuman) {
|
||||
@@ -227,7 +227,7 @@
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -953,8 +1038,13 @@
|
||||
@@ -954,8 +1039,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -242,7 +242,7 @@
|
||||
if (!this.isInvulnerableTo(damagesource)) {
|
||||
f = this.getDamageAfterArmorAbsorb(damagesource, f);
|
||||
f = this.getDamageAfterMagicAbsorb(damagesource, f);
|
||||
@@ -969,7 +1059,7 @@
|
||||
@@ -970,7 +1060,7 @@
|
||||
}
|
||||
|
||||
if (f != 0.0F) {
|
||||
@@ -251,7 +251,7 @@
|
||||
float f3 = this.getHealth();
|
||||
|
||||
this.setHealth(this.getHealth() - f);
|
||||
@@ -980,6 +1070,7 @@
|
||||
@@ -981,6 +1071,7 @@
|
||||
|
||||
}
|
||||
}
|
||||
@@ -259,7 +259,7 @@
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1139,7 +1230,7 @@
|
||||
@@ -1140,7 +1231,7 @@
|
||||
|
||||
f *= 0.2F + f2 * f2 * 0.8F;
|
||||
f1 *= f2;
|
||||
@@ -268,7 +268,7 @@
|
||||
if (f > 0.0F || f1 > 0.0F) {
|
||||
boolean flag = f2 > 0.9F;
|
||||
boolean flag1 = false;
|
||||
@@ -1178,8 +1269,15 @@
|
||||
@@ -1179,8 +1270,15 @@
|
||||
if (entity instanceof EntityLiving) {
|
||||
f3 = ((EntityLiving) entity).getHealth();
|
||||
if (j > 0 && !entity.isOnFire()) {
|
||||
@@ -286,7 +286,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1207,8 +1305,11 @@
|
||||
@@ -1208,8 +1306,11 @@
|
||||
EntityLiving entityliving = (EntityLiving) iterator.next();
|
||||
|
||||
if (entityliving != this && entityliving != entity && !this.isAlliedTo((Entity) entityliving) && (!(entityliving instanceof EntityArmorStand) || !((EntityArmorStand) entityliving).isMarker()) && this.distanceToSqr((Entity) entityliving) < 9.0D) {
|
||||
@@ -299,7 +299,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1217,9 +1318,26 @@
|
||||
@@ -1218,9 +1319,26 @@
|
||||
}
|
||||
|
||||
if (entity instanceof EntityPlayer && entity.hurtMarked) {
|
||||
@@ -326,7 +326,7 @@
|
||||
}
|
||||
|
||||
if (flag2) {
|
||||
@@ -1264,7 +1382,14 @@
|
||||
@@ -1265,7 +1383,14 @@
|
||||
|
||||
this.awardStat(StatisticList.DAMAGE_DEALT, Math.round(f5 * 10.0F));
|
||||
if (j > 0) {
|
||||
@@ -342,7 +342,7 @@
|
||||
}
|
||||
|
||||
if (this.level instanceof WorldServer && f5 > 2.0F) {
|
||||
@@ -1274,12 +1399,17 @@
|
||||
@@ -1275,12 +1400,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -361,8 +361,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1357,6 +1487,12 @@
|
||||
public void updateTutorialInventoryAction(ItemStack itemstack, ItemStack itemstack1, ClickAction clickaction) {}
|
||||
@@ -1362,6 +1492,12 @@
|
||||
}
|
||||
|
||||
public Either<EntityHuman.EnumBedResult, Unit> startSleepInBed(BlockPosition blockposition) {
|
||||
+ // CraftBukkit start
|
||||
@@ -374,7 +374,7 @@
|
||||
this.startSleeping(blockposition);
|
||||
this.sleepCounter = 0;
|
||||
return Either.right(Unit.INSTANCE);
|
||||
@@ -1441,9 +1577,9 @@
|
||||
@@ -1446,9 +1582,9 @@
|
||||
super.jumpFromGround();
|
||||
this.awardStat(StatisticList.JUMP);
|
||||
if (this.isSprinting()) {
|
||||
@@ -386,7 +386,7 @@
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1477,7 +1613,11 @@
|
||||
@@ -1482,7 +1618,11 @@
|
||||
this.setDeltaMovement(vec3d2.x, d3 * 0.6D, vec3d2.z);
|
||||
this.flyingSpeed = f;
|
||||
this.resetFallDistance();
|
||||
@@ -399,7 +399,7 @@
|
||||
} else {
|
||||
super.travel(vec3d);
|
||||
}
|
||||
@@ -1512,19 +1652,19 @@
|
||||
@@ -1517,19 +1657,19 @@
|
||||
i = Math.round((float) Math.sqrt(d0 * d0 + d1 * d1 + d2 * d2) * 100.0F);
|
||||
if (i > 0) {
|
||||
this.awardStat(StatisticList.SWIM_ONE_CM, i);
|
||||
@@ -422,7 +422,7 @@
|
||||
}
|
||||
} else if (this.onClimbable()) {
|
||||
if (d1 > 0.0D) {
|
||||
@@ -1535,13 +1675,13 @@
|
||||
@@ -1540,13 +1680,13 @@
|
||||
if (i > 0) {
|
||||
if (this.isSprinting()) {
|
||||
this.awardStat(StatisticList.SPRINT_ONE_CM, i);
|
||||
@@ -439,7 +439,7 @@
|
||||
}
|
||||
}
|
||||
} else if (this.isFallFlying()) {
|
||||
@@ -1607,12 +1747,24 @@
|
||||
@@ -1617,12 +1757,24 @@
|
||||
}
|
||||
|
||||
public void startFallFlying() {
|
||||
@@ -465,7 +465,7 @@
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1703,10 +1855,21 @@
|
||||
@@ -1713,10 +1865,21 @@
|
||||
return this.experienceLevel >= 30 ? 112 + (this.experienceLevel - 30) * 9 : (this.experienceLevel >= 15 ? 37 + (this.experienceLevel - 15) * 5 : 7 + this.experienceLevel * 2);
|
||||
}
|
||||
|
||||
@@ -488,7 +488,7 @@
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1792,13 +1955,20 @@
|
||||
@@ -1802,13 +1965,20 @@
|
||||
|
||||
@Override
|
||||
public void setItemSlot(EnumItemSlot enumitemslot, ItemStack itemstack) {
|
||||
@@ -512,7 +512,7 @@
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1837,26 +2007,31 @@
|
||||
@@ -1847,26 +2017,31 @@
|
||||
|
||||
protected void removeEntitiesOnShoulder() {
|
||||
if (this.timeEntitySatOnShoulder + 20L < this.level.getGameTime()) {
|
||||
|
||||
@@ -16,15 +16,6 @@
|
||||
public class EntityBoat extends Entity {
|
||||
|
||||
private static final DataWatcherObject<Integer> DATA_ID_HURT = DataWatcher.defineId(EntityBoat.class, DataWatcherRegistry.INT);
|
||||
@@ -82,7 +91,7 @@
|
||||
private boolean inputDown;
|
||||
private double waterLevel;
|
||||
private float landFriction;
|
||||
- private EntityBoat.EnumStatus status;
|
||||
+ public EntityBoat.EnumStatus status;
|
||||
private EntityBoat.EnumStatus oldStatus;
|
||||
private double lastYd;
|
||||
private boolean isAboveBubbleColumn;
|
||||
@@ -91,6 +100,14 @@
|
||||
private float bubbleAngle;
|
||||
private float bubbleAngleO;
|
||||
|
||||
Reference in New Issue
Block a user