Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
org.bukkit.block.CreatureSpawner Interface Reference

Represents a creature spawner. More...

+ Inheritance diagram for org.bukkit.block.CreatureSpawner:
+ Collaboration diagram for org.bukkit.block.CreatureSpawner:

Public Member Functions

CreatureType getCreatureType ()
 Get the spawner's creature type.
 
EntityType getSpawnedType ()
 Get the spawner's creature type.
 
void setSpawnedType (EntityType creatureType)
 Set the spawner's creature type.
 
void setCreatureType (CreatureType creatureType)
 Set the spawner creature type.
 
String getCreatureTypeId ()
 Get the spawner's creature type.
 
void setCreatureTypeByName (String creatureType)
 Set the spawner mob type.
 
String getCreatureTypeName ()
 Get the spawner's creature type.
 
void setCreatureTypeId (String creatureType)
 Set the spawner mob type.
 
int getDelay ()
 Get the spawner's delay.
 
void setDelay (int delay)
 Set the spawner's delay.
 
- Public Member Functions inherited from org.bukkit.block.BlockState
Block getBlock ()
 Gets the block represented by this BlockState.
 
MaterialData getData ()
 Gets the metadata for this block.
 
Material getType ()
 Gets the type of this block.
 
int getTypeId ()
 Gets the type-id of this block.
 
byte getLightLevel ()
 Gets the light level between 0-15.
 
World getWorld ()
 Gets the world which contains this Block.
 
int getX ()
 Gets the x-coordinate of this block.
 
int getY ()
 Gets the y-coordinate of this block.
 
int getZ ()
 Gets the z-coordinate of this block.
 
Location getLocation ()
 Gets the location of this block.
 
Location getLocation (Location loc)
 Stores the location of this block in the provided Location object.
 
Chunk getChunk ()
 Gets the chunk which contains this block.
 
void setData (MaterialData data)
 Sets the metadata for this block.
 
void setType (Material type)
 Sets the type of this block.
 
boolean setTypeId (int type)
 Sets the type-id of this block.
 
boolean update ()
 Attempts to update the block represented by this state, setting it to the new values as defined by this state.
 
boolean update (boolean force)
 Attempts to update the block represented by this state, setting it to the new values as defined by this state.
 
byte getRawData ()
 
void setRawData (byte data)
 

Detailed Description

Represents a creature spawner.

Definition at line 9 of file CreatureSpawner.java.

Member Function Documentation

CreatureType org.bukkit.block.CreatureSpawner.getCreatureType ( )

Get the spawner's creature type.

Returns
The creature type.
Deprecated:
In favour of getSpawnedType().
String org.bukkit.block.CreatureSpawner.getCreatureTypeId ( )

Get the spawner's creature type.

Returns
The creature type's name.
Deprecated:
Use getCreatureTypeName().
String org.bukkit.block.CreatureSpawner.getCreatureTypeName ( )

Get the spawner's creature type.

Returns
The creature type's name.
int org.bukkit.block.CreatureSpawner.getDelay ( )

Get the spawner's delay.

Returns
The delay.
EntityType org.bukkit.block.CreatureSpawner.getSpawnedType ( )

Get the spawner's creature type.

Returns
The creature type.
void org.bukkit.block.CreatureSpawner.setCreatureType ( CreatureType  creatureType)

Set the spawner creature type.

Parameters
creatureTypeThe creature type.
Deprecated:
In favour of setSpawnedType(EntityType).
void org.bukkit.block.CreatureSpawner.setCreatureTypeByName ( String  creatureType)

Set the spawner mob type.

Parameters
creatureTypeThe creature type's name.
void org.bukkit.block.CreatureSpawner.setCreatureTypeId ( String  creatureType)

Set the spawner mob type.

Parameters
creatureTypeThe creature type's name.
Deprecated:
Use setCreatureTypeByName(String).
void org.bukkit.block.CreatureSpawner.setDelay ( int  delay)

Set the spawner's delay.

Parameters
delayThe delay.
void org.bukkit.block.CreatureSpawner.setSpawnedType ( EntityType  creatureType)

Set the spawner's creature type.

Parameters
creatureTypeThe creature type.

The documentation for this interface was generated from the following file: