Purged deprecated MobType and MobSpawner

This commit is contained in:
Dinnerbone
2011-03-07 16:29:03 +00:00
parent 9e5ec989ad
commit 9da67772a8
4 changed files with 11 additions and 129 deletions

View File

@@ -1,7 +1,7 @@
package org.bukkit.event.entity;
import org.bukkit.entity.CreatureType;
import org.bukkit.entity.Entity;
import org.bukkit.entity.MobType;
import org.bukkit.Location;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
@@ -13,17 +13,17 @@ public class CreatureSpawnEvent extends EntityEvent implements Cancellable {
private Location location;
private boolean canceled;
private MobType mobtype;
private CreatureType creatureType;
public CreatureSpawnEvent(Entity spawnee, MobType mobtype, Location loc) {
public CreatureSpawnEvent(Entity spawnee, CreatureType mobtype, Location loc) {
super(Event.Type.CREATURE_SPAWN, spawnee);
this.mobtype = mobtype;
this.creatureType = mobtype;
this.location = loc;
}
protected CreatureSpawnEvent(Event.Type type, Entity spawnee, MobType mobtype, Location loc) {
protected CreatureSpawnEvent(Event.Type type, Entity spawnee, CreatureType mobtype, Location loc) {
super(type, spawnee);
this.mobtype = mobtype;
this.creatureType = mobtype;
this.location = loc;
}
@@ -60,7 +60,7 @@ public class CreatureSpawnEvent extends EntityEvent implements Cancellable {
*
* @return A CreatureType value detailing the type of creature being spawned
*/
public MobType getMobType() {
return mobtype;
public CreatureType getCreatureType() {
return creatureType;
}
}