Purged deprecated MobType and MobSpawner
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user