even even even more work
This commit is contained in:
@@ -9,22 +9,22 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
--- a/src/main/java/net/minecraft/server/EntityHuman.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityHuman.java
|
||||
@@ -0,0 +0,0 @@ public abstract class EntityHuman extends EntityLiving {
|
||||
this.datawatcher.set(EntityHuman.bt, nbttagcompound);
|
||||
this.datawatcher.set(EntityHuman.bs, nbttagcompound);
|
||||
}
|
||||
|
||||
+ public float getCooldownPeriod() { return this.ex(); } // Paper - OBFHELPER
|
||||
public float ex() {
|
||||
return (float) (1.0D / this.getAttributeInstance(GenericAttributes.ATTACK_SPEED).getValue() * 20.0D);
|
||||
+ public float getCooldownPeriod() { return this.eR(); } // Paper - OBFHELPER
|
||||
public float eR() {
|
||||
return (float) (1.0D / this.b(GenericAttributes.ATTACK_SPEED) * 20.0D);
|
||||
}
|
||||
|
||||
+ public float getCooledAttackStrength(float adjustTicks) { return s(adjustTicks); } // Paper - OBFHELPER
|
||||
public float s(float f) {
|
||||
return MathHelper.a(((float) this.aB + f) / this.ex(), 0.0F, 1.0F);
|
||||
+ public float getCooledAttackStrength(float adjustTicks) { return getAttackCooldown(adjustTicks); } // Paper - OBFHELPER
|
||||
public float getAttackCooldown(float f) {
|
||||
return MathHelper.a(((float) this.aA + f) / this.eR(), 0.0F, 1.0F);
|
||||
}
|
||||
|
||||
+ public void resetCooldown() { this.ey(); } // Paper - OBFHELPER
|
||||
public void ey() {
|
||||
this.aB = 0;
|
||||
public void resetAttackCooldown() {
|
||||
this.aA = 0;
|
||||
}
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
|
||||
Reference in New Issue
Block a user