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,7 +1,6 @@
package org.bukkit.event.entity;
import org.bukkit.Location;
import org.bukkit.entity.CreatureType;
import org.bukkit.entity.Entity;
import org.bukkit.entity.LivingEntity;
import org.bukkit.event.Cancellable;
@@ -22,12 +21,6 @@ public class CreatureSpawnEvent extends EntityEvent implements Cancellable {
this.spawnReason = spawnReason;
}
@Deprecated
public CreatureSpawnEvent(Entity spawnee, CreatureType type, Location loc, SpawnReason reason) {
super(spawnee);
spawnReason = reason;
}
public boolean isCancelled() {
return canceled;
}
@@ -50,18 +43,6 @@ public class CreatureSpawnEvent extends EntityEvent implements Cancellable {
return getEntity().getLocation();
}
/**
* Gets the type of creature being spawned.
*
* @return A CreatureType value detailing the type of creature being
* spawned
* @deprecated In favour of {@link #getEntityType()}.
*/
@Deprecated
public CreatureType getCreatureType() {
return CreatureType.fromEntityType(getEntityType());
}
/**
* Gets the reason for why the creature is being spawned.
*

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
*