|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMobSpawner
public class MobSpawner extends java.lang.Object implements ComplexBlock
MobSpawner.java - Wrapper for mob spawners.
Constructor and Description |
---|
MobSpawner(db spawner)
Creates an interface for the spawner. |
Modifier and Type | Method and Description |
---|---|
Block |
getBlock()
Returns the Block associated with this ComplexBlock |
java.lang.String |
getSpawn()
Deprecated. |
int |
getX()
Returns the X coordinates of this block |
int |
getY()
Returns the Y coordinates of this block |
int |
getZ()
Returns the Z coordinates of this block |
void |
setDelay(int delay)
Allows delay of what to spawn to change on-the-fly Modification of this is near-useless as delays get randomized after spawn. |
void |
setSpawn(java.lang.String spawn)
Allows what to spawn to change on-the-fly |
void |
update()
Sends the updated block information to clients. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MobSpawner(db spawner)
spawner
- Method Detail |
---|
public int getX()
ComplexBlock
getX
in interface ComplexBlock
public int getY()
ComplexBlock
getY
in interface ComplexBlock
public int getZ()
ComplexBlock
getZ
in interface ComplexBlock
public Block getBlock()
ComplexBlock
getBlock
in interface ComplexBlock
public void update()
ComplexBlock
update
in interface ComplexBlock
public void setSpawn(java.lang.String spawn)
spawn
- @Deprecated public java.lang.String getSpawn()
public void setDelay(int delay)
delay
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |