mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 08:46:44 +01:00
SPIGOT-4187: Remove deprecation on some EntityDamageEvent constructors
By: md_5 <git@md-5.net>
This commit is contained in:
parent
f3f25a351f
commit
c26d6b679b
3 changed files with 0 additions and 3 deletions
|
@ -12,7 +12,6 @@ import org.bukkit.entity.Entity;
|
|||
public class EntityDamageByBlockEvent extends EntityDamageEvent {
|
||||
private final Block damager;
|
||||
|
||||
@Deprecated
|
||||
public EntityDamageByBlockEvent(final Block damager, final Entity damagee, final DamageCause cause, final double damage) {
|
||||
super(damagee, cause, damage);
|
||||
this.damager = damager;
|
||||
|
|
|
@ -11,7 +11,6 @@ import org.bukkit.entity.Entity;
|
|||
public class EntityDamageByEntityEvent extends EntityDamageEvent {
|
||||
private final Entity damager;
|
||||
|
||||
@Deprecated
|
||||
public EntityDamageByEntityEvent(final Entity damager, final Entity damagee, final DamageCause cause, final double damage) {
|
||||
super(damagee, cause, damage);
|
||||
this.damager = damager;
|
||||
|
|
|
@ -28,7 +28,6 @@ public class EntityDamageEvent extends EntityEvent implements Cancellable {
|
|||
private boolean cancelled;
|
||||
private final DamageCause cause;
|
||||
|
||||
@Deprecated
|
||||
public EntityDamageEvent(final Entity damagee, final DamageCause cause, final double damage) {
|
||||
this(damagee, cause, new EnumMap<DamageModifier, Double>(ImmutableMap.of(DamageModifier.BASE, damage)), new EnumMap<DamageModifier, Function<? super Double, Double>>(ImmutableMap.of(DamageModifier.BASE, ZERO)));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue