@@ -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;
|
||||
|
||||
@@ -4,7 +4,6 @@ import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Vehicle;
|
||||
import org.bukkit.event.Cancellable;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.bukkit.util.NumberConversions;
|
||||
|
||||
/**
|
||||
* Raised when a vehicle receives damage.
|
||||
@@ -15,11 +14,6 @@ public class VehicleDamageEvent extends VehicleEvent implements Cancellable {
|
||||
private double damage;
|
||||
private boolean cancelled;
|
||||
|
||||
@Deprecated
|
||||
public VehicleDamageEvent(final Vehicle vehicle, final Entity attacker, final int damage) {
|
||||
this(vehicle, attacker, (double) damage);
|
||||
}
|
||||
|
||||
public VehicleDamageEvent(final Vehicle vehicle, final Entity attacker, final double damage) {
|
||||
super(vehicle);
|
||||
this.attacker = attacker;
|
||||
@@ -44,18 +38,6 @@ public class VehicleDamageEvent extends VehicleEvent 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 damage
|
||||
*/
|
||||
@Deprecated
|
||||
public int _INVALID_getDamage() {
|
||||
return NumberConversions.ceil(getDamage());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the damage done to the vehicle
|
||||
*
|
||||
@@ -65,18 +47,6 @@ public class VehicleDamageEvent extends VehicleEvent implements Cancellable {
|
||||
this.damage = 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 damage
|
||||
*/
|
||||
@Deprecated
|
||||
public void _INVALID_setDamage(int damage) {
|
||||
setDamage(damage);
|
||||
}
|
||||
|
||||
public boolean isCancelled() {
|
||||
return cancelled;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user