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