org.bukkit.block
Interface CreatureSpawner

All Superinterfaces:
BlockState, Metadatable

public interface CreatureSpawner
extends BlockState

Represents a creature spawner.


Method Summary
 CreatureType getCreatureType()
          Deprecated. In favour of getSpawnedType().
 String getCreatureTypeId()
          Deprecated. Use getCreatureTypeName().
 String getCreatureTypeName()
          Get the spawner's creature type.
 int getDelay()
          Get the spawner's delay.
 EntityType getSpawnedType()
          Get the spawner's creature type.
 void setCreatureType(CreatureType creatureType)
          Deprecated. In favour of setSpawnedType(EntityType).
 void setCreatureTypeByName(String creatureType)
          Set the spawner mob type.
 void setCreatureTypeId(String creatureType)
          Deprecated. Use setCreatureTypeByName(String).
 void setDelay(int delay)
          Set the spawner's delay.
 void setSpawnedType(EntityType creatureType)
          Set the spawner's creature type.
 
Methods inherited from interface org.bukkit.block.BlockState
getBlock, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getTypeId, getWorld, getX, getY, getZ, setData, setRawData, setType, setTypeId, update, update, update
 
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
 

Method Detail

getCreatureType

@Deprecated
CreatureType getCreatureType()
Deprecated. In favour of getSpawnedType().

Get the spawner's creature type.

Returns:
The creature type.

getSpawnedType

EntityType getSpawnedType()
Get the spawner's creature type.

Returns:
The creature type.

setSpawnedType

void setSpawnedType(EntityType creatureType)
Set the spawner's creature type.

Parameters:
creatureType - The creature type.

setCreatureType

@Deprecated
void setCreatureType(CreatureType creatureType)
Deprecated. In favour of setSpawnedType(EntityType).

Set the spawner creature type.

Parameters:
creatureType - The creature type.

getCreatureTypeId

@Deprecated
String getCreatureTypeId()
Deprecated. Use getCreatureTypeName().

Get the spawner's creature type.

Returns:
The creature type's name.

setCreatureTypeByName

void setCreatureTypeByName(String creatureType)
Set the spawner mob type.

Parameters:
creatureType - The creature type's name.

getCreatureTypeName

String getCreatureTypeName()
Get the spawner's creature type.

Returns:
The creature type's name.

setCreatureTypeId

@Deprecated
void setCreatureTypeId(String creatureType)
Deprecated. Use setCreatureTypeByName(String).

Set the spawner mob type.

Parameters:
creatureType - The creature type's name.

getDelay

int getDelay()
Get the spawner's delay.

Returns:
The delay.

setDelay

void setDelay(int delay)
Set the spawner's delay.

Parameters:
delay - The delay.


Copyright © 2013. All Rights Reserved.