Even more patches for 1.14
This commit is contained in:
@@ -6,33 +6,33 @@ Subject: [PATCH] LivingEntity Hand Raised/Item Use API
|
||||
How long an entity has raised hands to charge an attack or use an item
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityLiving.java b/src/main/java/net/minecraft/server/EntityLiving.java
|
||||
index 164e4b412a..bc1ab273bd 100644
|
||||
index d65933e9e..58bfe8c1c 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityLiving.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityLiving.java
|
||||
@@ -0,0 +0,0 @@ public abstract class EntityLiving extends Entity {
|
||||
private float bI;
|
||||
private int bJ;
|
||||
private float bK;
|
||||
private float bD;
|
||||
private int jumpTicks;
|
||||
private float bF;
|
||||
- protected ItemStack activeItem;
|
||||
+ public ItemStack activeItem; // Paper - public
|
||||
protected int bu;
|
||||
protected int bv;
|
||||
private BlockPosition bL;
|
||||
protected int bo;
|
||||
protected int bp;
|
||||
private BlockPosition bG;
|
||||
@@ -0,0 +0,0 @@ public abstract class EntityLiving extends Entity {
|
||||
return this.activeItem;
|
||||
}
|
||||
|
||||
+ public int getItemUseRemainingTime() { return cX(); } // Paper - OBFHELPER
|
||||
public int cX() {
|
||||
return this.bu;
|
||||
+ public int getItemUseRemainingTime() { return dm(); } // Paper - OBFHELPER
|
||||
public int dm() {
|
||||
return this.bo;
|
||||
}
|
||||
|
||||
+ public int getHandRaisedTime() { return cY(); } // Paper - OBFHELPER
|
||||
public int cY() {
|
||||
return this.isHandRaised() ? this.activeItem.k() - this.cX() : 0;
|
||||
+ public int getHandRaisedTime() { return dn(); } // Paper - OBFHELPER
|
||||
public int dn() {
|
||||
return this.isHandRaised() ? this.activeItem.k() - this.dm() : 0;
|
||||
}
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
|
||||
index 8e65bfc78e..52834b6da3 100644
|
||||
index 182145ccf..29b23e30f 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
|
||||
@@ -0,0 +0,0 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
||||
|
||||
Reference in New Issue
Block a user