Renamed MobType->CreatureType and MobSpawner->CreatureSpawner.

This is to bring the names in line with the rest of bukkit.

Deprecated code has been left in to ensure nothing breaks as
a result of refactoring MobType.
This will be removed after 1 week, to give plugin devs time to
migrate

By: Andrew Ardill <andrew.ardill@gmail.com>
This commit is contained in:
Bukkit/Spigot
2011-02-17 14:19:57 +11:00
parent d3b62214a6
commit ca55cacd67
5 changed files with 125 additions and 5 deletions

View File

@@ -0,0 +1,54 @@
package org.bukkit.block;
import org.bukkit.entity.CreatureType;
/**
* Represents a creature spawner.
*
* @author sk89q
* @author Cogito
*/
public interface CreatureSpawner extends BlockState {
/**
* Get the spawner's creature type.
*
* @return
*/
public CreatureType getCreatureType();
/**
* Set the spawner creature type.
*
* @param mobType
*/
public void setCreatureType(CreatureType creatureType);
/**
* Get the spawner's creature type.
*
* @return
*/
public String getCreatureTypeId();
/**
* Set the spawner mob type.
*
* @param creatureType
*/
public void setCreatureTypeId(String creatureType);
/**
* Get the spawner's delay.
*
* @return
*/
public int getDelay();
/**
* Set the spawner's delay.
*
* @param delay
*/
public void setDelay(int delay);
}

View File

@@ -6,6 +6,8 @@ import org.bukkit.entity.MobType;
* Represents a mob spawner.
*
* @author sk89q
*
* @deprecated
*/
public interface MobSpawner extends BlockState {
/**