@@ -1,35 +1,32 @@
|
||||
--- a/net/minecraft/server/EntityAnimal.java
|
||||
+++ b/net/minecraft/server/EntityAnimal.java
|
||||
@@ -6,8 +6,9 @@
|
||||
public abstract class EntityAnimal extends EntityAgeable implements IAnimal {
|
||||
|
||||
protected Block bF;
|
||||
- private int bC;
|
||||
+ public int bC; // CraftBukkit - private -> public
|
||||
@@ -8,6 +8,7 @@
|
||||
protected Block bC;
|
||||
public int loveTicks;
|
||||
public UUID breedCause;
|
||||
+ public ItemStack breedItem; // CraftBukkit - Add breedItem variable
|
||||
|
||||
protected EntityAnimal(EntityTypes<?> entitytypes, World world) {
|
||||
protected EntityAnimal(EntityTypes<? extends EntityAnimal> entitytypes, World world) {
|
||||
super(entitytypes, world);
|
||||
@@ -41,6 +42,9 @@
|
||||
@@ -43,6 +44,9 @@
|
||||
|
||||
}
|
||||
|
||||
+ /* CraftBukkit start
|
||||
+ // Function disabled as it has no special function anymore after
|
||||
+ // setSitting is disabled.
|
||||
@Override
|
||||
public boolean damageEntity(DamageSource damagesource, float f) {
|
||||
if (this.isInvulnerable(damagesource)) {
|
||||
return false;
|
||||
@@ -49,6 +53,7 @@
|
||||
@@ -52,6 +56,7 @@
|
||||
return super.damageEntity(damagesource, f);
|
||||
}
|
||||
}
|
||||
+ // CraftBukkit end */
|
||||
|
||||
@Override
|
||||
public float a(BlockPosition blockposition, IWorldReader iworldreader) {
|
||||
return iworldreader.getType(blockposition.down()).getBlock() == this.bF ? 10.0F : iworldreader.A(blockposition) - 0.5F;
|
||||
@@ -134,6 +139,7 @@
|
||||
@@ -146,6 +151,7 @@
|
||||
if (entityhuman != null) {
|
||||
this.breedCause = entityhuman.getUniqueID();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user