mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-31 20:22:05 -07:00
NOT FINISHED! 1.13 pre-7
I need more creative commit messages.
This commit is contained in:
@@ -6,29 +6,29 @@ 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 156bf8ee0..14637be49 100644
|
||||
index 1d7b9c525..6036915a8 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 {
|
||||
|
||||
}
|
||||
|
||||
+ public ItemStack getActiveItem() { return cJ(); } // Paper - OBFHELPER
|
||||
public ItemStack cJ() {
|
||||
+ public ItemStack getActiveItem() { return cV(); } // Paper - OBFHELPER
|
||||
public ItemStack cV() {
|
||||
return this.activeItem;
|
||||
}
|
||||
|
||||
+ public int getItemUseRemainingTime() { return cK(); } // Paper - OBFHELPER
|
||||
public int cK() {
|
||||
return this.bp;
|
||||
+ public int getItemUseRemainingTime() { return cW(); } // Paper - OBFHELPER
|
||||
public int cW() {
|
||||
return this.bu;
|
||||
}
|
||||
|
||||
+ public int getHandRaisedTime() { return cL(); } // Paper - OBFHELPER
|
||||
public int cL() {
|
||||
return this.isHandRaised() ? this.activeItem.m() - this.cK() : 0;
|
||||
+ public int getHandRaisedTime() { return cX(); } // Paper - OBFHELPER
|
||||
public int cX() {
|
||||
return this.isHandRaised() ? this.activeItem.k() - this.cW() : 0;
|
||||
}
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
|
||||
index 14fb474f7..9c750efc7 100644
|
||||
index 0237ac769..8b3659c82 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