Replaced by EntityType / other methods since February 2012 and April 2012 respectively. By: BlackHole <black-hole@live.com>
52 lines
1017 B
Java
52 lines
1017 B
Java
package org.bukkit.block;
|
|
|
|
import org.bukkit.entity.EntityType;
|
|
|
|
/**
|
|
* Represents a creature spawner.
|
|
*/
|
|
public interface CreatureSpawner extends BlockState {
|
|
|
|
/**
|
|
* Get the spawner's creature type.
|
|
*
|
|
* @return The creature type.
|
|
*/
|
|
public EntityType getSpawnedType();
|
|
|
|
/**
|
|
* Set the spawner's creature type.
|
|
*
|
|
* @param creatureType The creature type.
|
|
*/
|
|
public void setSpawnedType(EntityType creatureType);
|
|
|
|
/**
|
|
* Set the spawner mob type.
|
|
*
|
|
* @param creatureType The creature type's name.
|
|
*/
|
|
public void setCreatureTypeByName(String creatureType);
|
|
|
|
/**
|
|
* Get the spawner's creature type.
|
|
*
|
|
* @return The creature type's name.
|
|
*/
|
|
public String getCreatureTypeName();
|
|
|
|
/**
|
|
* Get the spawner's delay.
|
|
*
|
|
* @return The delay.
|
|
*/
|
|
public int getDelay();
|
|
|
|
/**
|
|
* Set the spawner's delay.
|
|
*
|
|
* @param delay The delay.
|
|
*/
|
|
public void setDelay(int delay);
|
|
}
|