|
|||||||||
| Version 1.5 | APIs subject to change! | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmultiverse.server.objects.NamedPropertyClass
multiverse.server.objects.Entity
multiverse.server.objects.SpawnData
public class SpawnData
Spawn generator definition.
| Field Summary |
|---|
| Fields inherited from class multiverse.server.objects.Entity |
|---|
log, staticLock, subObjectNamespacesInt, transientPropertyKeys, type |
| Fields inherited from class multiverse.server.objects.NamedPropertyClass |
|---|
lock, name |
| Constructor Summary | |
|---|---|
SpawnData()
|
|
SpawnData(java.lang.String name,
java.lang.String templateName,
java.lang.String factoryName,
long instanceOid,
Point loc,
Quaternion orient,
java.lang.Integer spawnRadius,
java.lang.Integer numSpawns,
java.lang.Integer respawnTime)
Create a SpawnData. |
|
| Method Summary | |
|---|---|
java.lang.String |
getClassName()
Get the spawn generator class name. |
java.lang.Integer |
getCorpseDespawnTime()
Get the corpse despawn time (seconds). |
java.lang.String |
getFactoryName()
Get the object factory name. |
long |
getInstanceOid()
Get the instance oid. |
Point |
getLoc()
Get spawn area center point. |
java.lang.Integer |
getNumSpawns()
Get the number of spawned objects. |
Quaternion |
getOrientation()
Get the initial spawned object orientation. |
java.lang.Integer |
getRespawnTime()
Get the respawn time (seconds). |
java.lang.Integer |
getSpawnRadius()
Get the spawn area radius. |
java.lang.String |
getTemplateName()
Get the template for spawning objects. |
void |
setClassName(java.lang.String className)
Set the spawn generator class name. |
void |
setCorpseDespawnTime(java.lang.Integer time)
Set the corpse despawn time (seconds). |
void |
setFactoryName(java.lang.String factoryName)
Set the object factory name. |
void |
setInstanceOid(long oid)
Set the instance oid. |
void |
setLoc(Point loc)
Set spawn area center point. |
void |
setNumSpawns(java.lang.Integer numSpawns)
Set the number of spawned objects. |
void |
setOrientation(Quaternion orient)
Set the initial spawned object orientation. |
void |
setRespawnTime(java.lang.Integer respawnTime)
Set the respawn time (seconds). |
void |
setSpawnRadius(java.lang.Integer spawnRadius)
Set the spawn area radius. |
void |
setTemplateName(java.lang.String templateName)
Set the template for spawning objects. |
java.lang.String |
toString()
Returns the string describing this entity, useful for logging. |
| Methods inherited from class multiverse.server.objects.NamedPropertyClass |
|---|
getBooleanProperty, getIntProperty, getName, getPropertyMap, getPropertyMapRef, getStringProperty, lock, modifyIntProperty, setName, setPropertyMap, setupTransient, unlock |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SpawnData()
public SpawnData(java.lang.String name,
java.lang.String templateName,
java.lang.String factoryName,
long instanceOid,
Point loc,
Quaternion orient,
java.lang.Integer spawnRadius,
java.lang.Integer numSpawns,
java.lang.Integer respawnTime)
name - The spawn generator name.templateName - Template for spawning objects.factoryName - Object factory name. Register object
factories with ObjectFactory.register().instanceOid - Instance oid.loc - Spawn area center point.orient - Spawn generator orientation. Sets spawned object's
initial orientation.spawnRadius - Spawn area radius.numSpawns - Number of objects to spawn.respawnTime - How long after object "dies" to spawn a replacement.| Method Detail |
|---|
public java.lang.String toString()
Entity
toString in class Entitypublic void setClassName(java.lang.String className)
SpawnGenerator. The class
name must be registered with
MobManagerPlugin.registerSpawnGeneratorClass().
The registered class must be a SpawnGenerator sub-class. An instance
is created
using the no-argument constructor. Sub-classes may implement
initialize(SpawnData) to override the
initialization behavior.
public java.lang.String getClassName()
public void setTemplateName(java.lang.String templateName)
public java.lang.String getTemplateName()
public void setFactoryName(java.lang.String factoryName)
ObjectFactory.register().
public java.lang.String getFactoryName()
public long getInstanceOid()
public void setInstanceOid(long oid)
public void setLoc(Point loc)
public Point getLoc()
public void setOrientation(Quaternion orient)
public Quaternion getOrientation()
public void setSpawnRadius(java.lang.Integer spawnRadius)
public java.lang.Integer getSpawnRadius()
public void setNumSpawns(java.lang.Integer numSpawns)
public java.lang.Integer getNumSpawns()
public void setRespawnTime(java.lang.Integer respawnTime)
public java.lang.Integer getRespawnTime()
public void setCorpseDespawnTime(java.lang.Integer time)
public java.lang.Integer getCorpseDespawnTime()
|
Copyright © 2008 The Multiverse Network, Inc. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||