Package zombie.world
Class DictionaryData
java.lang.Object
zombie.world.DictionaryData
- Direct Known Subclasses:
DictionaryDataClient
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected voidprotected final bytegetIdForObjectName(String string) protected final intgetIdForSpriteName(String string) protected final ItemInfogetItemInfoFromID(short short1) protected final ItemInfogetItemInfoFromType(String string) protected final voidgetItemMods(List list) protected final shortgetItemRegistryID(String string) protected final StringgetItemTypeDebugString(short short1) protected final StringgetItemTypeFromID(short short1) protected final voidgetModuleList(List list) protected final StringgetObjectNameFromID(byte byte1) protected final StringgetSpriteNameFromID(int int1) protected booleanisClient()protected voidload()protected voidloadFromByteBuffer(ByteBuffer byteBuffer) protected voidprotected voidparseItemLoadList(Map map) protected voidparseObjectNameLoadList(List list) protected voidreset()protected voidsave()protected voidsaveAsText(String string) protected voidsaveToByteBuffer(ByteBuffer byteBuffer)
-
Field Details
-
itemIdToInfoMap
-
itemTypeToInfoMap
-
spriteNameToIdMap
-
spriteIdToNameMap
-
objectNameToIdMap
-
objectIdToNameMap
-
unsetObject
-
unsetSprites
-
NextItemID
protected short NextItemID -
NextSpriteNameID
protected int NextSpriteNameID -
NextObjectNameID
protected byte NextObjectNameID -
serverDataCache
protected byte[] serverDataCache
-
-
Constructor Details
-
DictionaryData
public DictionaryData()
-
-
Method Details
-
isClient
protected boolean isClient() -
reset
protected void reset() -
getItemInfoFromType
-
getItemInfoFromID
-
getItemRegistryID
-
getItemTypeFromID
-
getItemTypeDebugString
-
getSpriteNameFromID
-
getIdForSpriteName
-
getObjectNameFromID
-
getIdForObjectName
-
getItemMods
-
getModuleList
-
parseItemLoadList
- Throws:
WorldDictionaryException
-
parseCurrentItemSet
- Throws:
WorldDictionaryException
-
parseObjectNameLoadList
- Throws:
WorldDictionaryException
-
backupCurrentDataSet
- Throws:
IOException
-
deleteBackupCurrentDataSet
- Throws:
IOException
-
createErrorBackups
protected void createErrorBackups() -
load
- Throws:
IOExceptionWorldDictionaryException
-
loadFromByteBuffer
- Throws:
IOException
-
save
- Throws:
IOExceptionWorldDictionaryException
-
saveToByteBuffer
- Throws:
IOException
-
saveAsText
- Throws:
IOExceptionWorldDictionaryException
-