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:
@@ -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);
|
||||
}
|
||||
@@ -6,6 +6,8 @@ import org.bukkit.entity.MobType;
|
||||
* Represents a mob spawner.
|
||||
*
|
||||
* @author sk89q
|
||||
*
|
||||
* @deprecated
|
||||
*/
|
||||
public interface MobSpawner extends BlockState {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user