Remove _INVALID_ methods

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2017-05-14 12:00:00 +10:00
parent 9cf4fbdb11
commit b2156bae0d
9 changed files with 0 additions and 229 deletions

View File

@@ -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.
*

View File

@@ -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;

View File

@@ -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;
}