[Bleeding] Added EntityType to replace CreatureType.
This commit is contained in:
committed by
EvilSeph
parent
7792156fb2
commit
af51313ffb
@@ -331,7 +331,12 @@ public class CraftWorld implements World {
|
||||
return (Arrow) arrow.getBukkitEntity();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public LivingEntity spawnCreature(Location loc, CreatureType creatureType) {
|
||||
return spawnCreature(loc, creatureType.toEntityType());
|
||||
}
|
||||
|
||||
public LivingEntity spawnCreature(Location loc, EntityType creatureType) {
|
||||
Entity result = spawn(loc, creatureType.getEntityClass());
|
||||
|
||||
if (result == null) {
|
||||
|
||||
Reference in New Issue
Block a user