CMCatalog.CataDataImplpublic static interface CatalogLibrary.CataData
| Modifier and Type | Method | Description | 
|---|---|---|
| void | addReference(Physical P) | Adds the given object as a world instance of this
 cataloged object | 
| void | build(java.lang.String catadata) | Builds this metadata from an xml doc | 
| void | bumpDeathPickup() | Bumps the number of times this mob has died,
 if the cataloged object is a mob, or the number of
 times this item has been picked up, if it's an item. | 
| java.lang.String | category() | Returns the user-defined category to which this
 cataloged object belongs. | 
| void | cleanHouse() | Goes through all the world instances of this
 cataloged item and removes any that are destroyed. | 
| java.lang.String | data(java.lang.String name) | Returns this metadata as an xml doc | 
| void | delReference(Physical P) | Removes the given item from the list of registered
 world instances of this cataloged object. | 
| java.util.Enumeration<Physical> | enumeration() | Creates and returns an enumeration of all the instances of
 this cataloged item in the world. | 
| int | getCap() | If this item or mob is a random room spawn, then this is the
 maximum number that can spawn and remain live. | 
| int | getDeathsPicksups() | Returns the number of times this mob has died,
 if the cataloged object is a mob, or the number of
 times this item has been picked up, if it's an item. | 
| Physical | getLiveReference() | Returns the first world instance of this
 cataloged item or mob. | 
| java.lang.String | getMaskStr() | A zapper mask that is applied to mobs to
 determine if a particular item is potentially
 a random drop. | 
| MaskingLibrary.CompiledZMask | getMaskV() | A compiled zapper mask that is applied to mobs to
 determine if a particular item is potentially
 a random drop. | 
| double | getRate() | If this item is a random drop, then this is the pct
 chance that this item is a potential selection for
 a random drop. | 
| CatalogLibrary.CataSpawn | getSpawn() | If this item is a random drop or spawn, this will
 describe how and when the spawn occurs. | 
| boolean | isReference(Physical P) | Returns whether the given item is a registered world
 instance of this cataloged object. | 
| java.lang.String | mostPopularArea() | Determines and returns the name of the most
 popular area in which instances of this catalog
 object can be found. | 
| int | numReferences() | Returns the number of world items that are instances
 of this cataloged object. | 
| java.lang.String | randomRoom() | Returns one of the rooms in which an instance
 of this cataloged item was registered. | 
| void | setCap(int max) | If this item or mob is a random room spawn, then this is the
 maximum number that can spawn and remain live. | 
| void | setCategory(java.lang.String cat) | Sets the user-defined category to which this
 cataloged object belongs. | 
| void | setMaskStr(java.lang.String s) | A zapper mask string that is applied to mobs to
 determine if this particular item is potentially
 a random drop. | 
| void | setRate(double r) | If this item is a random drop, then this is the pct
 chance that this item is a potential selection for
 a random drop. | 
| void | setSpawn(CatalogLibrary.CataSpawn spawn) | If this item is a random drop or spawn, this flag will
 describe how it spawns. | 
MaskingLibrary.CompiledZMask getMaskV()
getMaskStr(), 
getSpawn(), 
getRate()java.lang.String getMaskStr()
getMaskV(), 
getRate(), 
setMaskStr(String)CatalogLibrary.CataSpawn getSpawn()
getMaskV(), 
getRate(), 
setSpawn(CataSpawn)double getRate()
getMaskV(), 
setRate(double), 
getSpawn()void setMaskStr(java.lang.String s)
s - a  zapper mask string for dead mobsgetMaskV(), 
getRate(), 
getMaskStr()void setSpawn(CatalogLibrary.CataSpawn spawn)
spawn - The catalog spawn typegetMaskV(), 
getRate(), 
getSpawn()void setRate(double r)
r - pct chance that the item is a potential selectiongetMaskV(), 
setRate(double), 
getSpawn()void setCap(int max)
max - the maximum number to spawn and remain liveint getCap()
java.util.Enumeration<Physical> enumeration()
addReference(Physical), 
isReference(Physical), 
delReference(Physical), 
numReferences()void addReference(Physical P)
P - the mob or item in the worldenumeration(), 
isReference(Physical), 
delReference(Physical), 
numReferences()boolean isReference(Physical P)
P - the item or mob in the worldenumeration(), 
addReference(Physical), 
delReference(Physical), 
numReferences()void delReference(Physical P)
P - the item or mob in the worldenumeration(), 
addReference(Physical), 
isReference(Physical), 
numReferences()int numReferences()
enumeration(), 
addReference(Physical), 
isReference(Physical), 
delReference(Physical)java.lang.String mostPopularArea()
java.lang.String randomRoom()
void cleanHouse()
Physical getLiveReference()
int getDeathsPicksups()
bumpDeathPickup()void bumpDeathPickup()
bumpDeathPickup()java.lang.String category()
setCategory(String)void setCategory(java.lang.String cat)
cat - the category namecategory()java.lang.String data(java.lang.String name)
name - null, or an optional item/mob namebuild(String)void build(java.lang.String catadata)
catadata - this metadata as an xml docdata(String)