@@ -145,18 +145,6 @@ public class EntityDamageEvent extends EntityEvent implements Cancellable {
|
||||
return damage;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method exists for legacy reasons to provide backwards
|
||||
* compatibility. It will not exist at runtime and should not be used
|
||||
* under any circumstances.
|
||||
*
|
||||
* @return the (rounded) damage
|
||||
*/
|
||||
@Deprecated
|
||||
public int _INVALID_getDamage() {
|
||||
return NumberConversions.ceil(getDamage());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the raw amount of damage caused by the event.
|
||||
* <p>
|
||||
@@ -194,18 +182,6 @@ public class EntityDamageEvent extends EntityEvent implements Cancellable {
|
||||
setDamage(DamageModifier.BASE, damage);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method exists for legacy reasons to provide backwards
|
||||
* compatibility. It will not exist at runtime and should not be used
|
||||
* under any circumstances.
|
||||
*
|
||||
* @param damage the new damage value
|
||||
*/
|
||||
@Deprecated
|
||||
public void _INVALID_setDamage(int damage) {
|
||||
setDamage(damage);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the cause of the damage.
|
||||
*
|
||||
|
||||
@@ -29,18 +29,6 @@ public class EntityRegainHealthEvent extends EntityEvent implements Cancellable
|
||||
return amount;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method exists for legacy reasons to provide backwards
|
||||
* compatibility. It will not exist at runtime and should not be used
|
||||
* under any circumstances.
|
||||
*
|
||||
* @return the (rounded) amount regained
|
||||
*/
|
||||
@Deprecated
|
||||
public int _INVALID_getAmount() {
|
||||
return NumberConversions.ceil(getAmount());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the amount of regained health
|
||||
*
|
||||
@@ -50,18 +38,6 @@ public class EntityRegainHealthEvent extends EntityEvent implements Cancellable
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method exists for legacy reasons to provide backwards
|
||||
* compatibility. It will not exist at runtime and should not be used
|
||||
* under any circumstances.
|
||||
*
|
||||
* @param amount the amount that will be regained
|
||||
*/
|
||||
@Deprecated
|
||||
public void _INVALID_setAmount(int amount) {
|
||||
setAmount(amount);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isCancelled() {
|
||||
return cancelled;
|
||||
|
||||
Reference in New Issue
Block a user