Deprecate spawnCreature and add spawnEntity. Addresses BUKKIT-1168
This commit is contained in:
parent
9cb65fd1cd
commit
f735129254
@ -304,13 +304,24 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
|||||||
*/
|
*/
|
||||||
public boolean generateTree(Location loc, TreeType type, BlockChangeDelegate delegate);
|
public boolean generateTree(Location loc, TreeType type, BlockChangeDelegate delegate);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a entity at the given {@link Location}
|
||||||
|
*
|
||||||
|
* @param loc The location to spawn the entity
|
||||||
|
* @param type The entity to spawn
|
||||||
|
* @return Resulting Entity of this method, or null if it was unsuccessful
|
||||||
|
*/
|
||||||
|
public Entity spawnEntity(Location loc, EntityType type);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a creature at the given {@link Location}
|
* Creates a creature at the given {@link Location}
|
||||||
*
|
*
|
||||||
* @param loc The location to spawn the creature
|
* @param loc The location to spawn the creature
|
||||||
* @param type The creature to spawn
|
* @param type The creature to spawn
|
||||||
* @return Resulting LivingEntity of this method, or null if it was unsuccessful
|
* @return Resulting LivingEntity of this method, or null if it was unsuccessful
|
||||||
|
* @deprecated Has issues spawning non LivingEntities. Use {@link #spawnEntity(Location, EntityType) spawnEntity} instead.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public LivingEntity spawnCreature(Location loc, EntityType type);
|
public LivingEntity spawnCreature(Location loc, EntityType type);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user