@@ -1,14 +1,15 @@
|
||||
--- a/net/minecraft/server/EntityHorseAbstract.java
|
||||
+++ b/net/minecraft/server/EntityHorseAbstract.java
|
||||
@@ -6,6 +6,7 @@
|
||||
import java.util.UUID;
|
||||
@@ -7,6 +7,8 @@
|
||||
import java.util.function.Predicate;
|
||||
import javax.annotation.Nullable;
|
||||
+import org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason; // CraftBukkit
|
||||
|
||||
+import org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason; // CraftBukkit
|
||||
+
|
||||
public abstract class EntityHorseAbstract extends EntityAnimal implements IInventoryListener, IJumpable, ISaddleable {
|
||||
|
||||
@@ -34,6 +35,7 @@
|
||||
private static final Predicate<EntityLiving> bw = (entityliving) -> {
|
||||
@@ -34,6 +36,7 @@
|
||||
private float bK;
|
||||
protected boolean bu = true;
|
||||
protected int bv;
|
||||
@@ -16,7 +17,7 @@
|
||||
|
||||
protected EntityHorseAbstract(EntityTypes<? extends EntityHorseAbstract> entitytypes, World world) {
|
||||
super(entitytypes, world);
|
||||
@@ -218,7 +220,7 @@
|
||||
@@ -218,7 +221,7 @@
|
||||
public void loadChest() {
|
||||
InventorySubcontainer inventorysubcontainer = this.inventoryChest;
|
||||
|
||||
@@ -25,7 +26,7 @@
|
||||
if (inventorysubcontainer != null) {
|
||||
inventorysubcontainer.b((IInventoryListener) this);
|
||||
int i = Math.min(inventorysubcontainer.getSize(), this.inventoryChest.getSize());
|
||||
@@ -334,7 +336,7 @@
|
||||
@@ -334,7 +337,7 @@
|
||||
}
|
||||
|
||||
public int getMaxDomestication() {
|
||||
@@ -34,7 +35,7 @@
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -405,7 +407,7 @@
|
||||
@@ -405,7 +408,7 @@
|
||||
}
|
||||
|
||||
if (this.getHealth() < this.getMaxHealth() && f > 0.0F) {
|
||||
@@ -43,7 +44,7 @@
|
||||
flag = true;
|
||||
}
|
||||
|
||||
@@ -481,7 +483,7 @@
|
||||
@@ -481,7 +484,7 @@
|
||||
super.movementTick();
|
||||
if (!this.world.isClientSide && this.isAlive()) {
|
||||
if (this.random.nextInt(900) == 0 && this.deathTicks == 0) {
|
||||
@@ -52,7 +53,7 @@
|
||||
}
|
||||
|
||||
if (this.fl()) {
|
||||
@@ -718,6 +720,7 @@
|
||||
@@ -718,6 +721,7 @@
|
||||
if (this.getOwnerUUID() != null) {
|
||||
nbttagcompound.a("Owner", this.getOwnerUUID());
|
||||
}
|
||||
@@ -60,7 +61,7 @@
|
||||
|
||||
if (!this.inventoryChest.getItem(0).isEmpty()) {
|
||||
nbttagcompound.set("SaddleItem", this.inventoryChest.getItem(0).save(new NBTTagCompound()));
|
||||
@@ -745,6 +748,11 @@
|
||||
@@ -745,6 +749,11 @@
|
||||
if (uuid != null) {
|
||||
this.setOwnerUUID(uuid);
|
||||
}
|
||||
@@ -72,7 +73,7 @@
|
||||
|
||||
if (nbttagcompound.hasKeyOfType("SaddleItem", 10)) {
|
||||
ItemStack itemstack = ItemStack.a(nbttagcompound.getCompound("SaddleItem"));
|
||||
@@ -796,6 +804,18 @@
|
||||
@@ -796,6 +805,18 @@
|
||||
|
||||
@Override
|
||||
public void b(int i) {
|
||||
|
||||
Reference in New Issue
Block a user