Remove EntityType and some deprecated Entity methods

Replaced by EntityType / other methods since February 2012 and April 2012 respectively.

By: BlackHole <black-hole@live.com>
This commit is contained in:
Bukkit/Spigot
2016-03-01 08:30:02 +11:00
parent f442df089f
commit 0ca001e61e
6 changed files with 0 additions and 243 deletions

View File

@@ -1,6 +1,5 @@
package org.bukkit.event.player;
import org.bukkit.entity.CreatureType;
import org.bukkit.entity.Egg;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
@@ -24,11 +23,6 @@ public class PlayerEggThrowEvent extends PlayerEvent {
this.hatchType = hatchingType;
}
@Deprecated
public PlayerEggThrowEvent(Player player, Egg egg, boolean hatching, byte numHatches, CreatureType hatchingType) {
this(player, egg, hatching, numHatches, hatchingType.toEntityType());
}
/**
* Gets the egg involved in this event.
*
@@ -58,17 +52,6 @@ public class PlayerEggThrowEvent extends PlayerEvent {
this.hatching = hatching;
}
/**
* Get the type of the mob being hatched (EntityType.CHICKEN by default)
*
* @return The type of the mob being hatched by the egg
* @deprecated In favour of {@link #getHatchingType()}.
*/
@Deprecated
public CreatureType getHatchType() {
return CreatureType.fromEntityType(hatchType);
}
/**
* Get the type of the mob being hatched (EntityType.CHICKEN by default)
*
@@ -78,17 +61,6 @@ public class PlayerEggThrowEvent extends PlayerEvent {
return hatchType;
}
/**
* Change the type of mob being hatched by the egg
*
* @param hatchType The type of the mob being hatched by the egg
* @deprecated In favour of {@link #setHatchingType(EntityType)}.
*/
@Deprecated
public void setHatchType(CreatureType hatchType) {
this.hatchType = hatchType.toEntityType();
}
/**
* Change the type of mob being hatched by the egg
*