Package zombie.world
Class DictionaryData
java.lang.Object
zombie.world.DictionaryData
- Direct Known Subclasses:
DictionaryDataClient
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
protected final byte
getIdForObjectName
(String string) protected final int
getIdForSpriteName
(String string) protected final ItemInfo
getItemInfoFromID
(short short1) protected final ItemInfo
getItemInfoFromType
(String string) protected final void
getItemMods
(List list) protected final short
getItemRegistryID
(String string) protected final String
getItemTypeDebugString
(short short1) protected final String
getItemTypeFromID
(short short1) protected final void
getModuleList
(List list) protected final String
getObjectNameFromID
(byte byte1) protected final String
getSpriteNameFromID
(int int1) protected boolean
isClient()
protected void
load()
protected void
loadFromByteBuffer
(ByteBuffer byteBuffer) protected void
protected void
parseItemLoadList
(Map map) protected void
parseObjectNameLoadList
(List list) protected void
reset()
protected void
save()
protected void
saveAsText
(String string) protected void
saveToByteBuffer
(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:
IOException
WorldDictionaryException
-
loadFromByteBuffer
- Throws:
IOException
-
save
- Throws:
IOException
WorldDictionaryException
-
saveToByteBuffer
- Throws:
IOException
-
saveAsText
- Throws:
IOException
WorldDictionaryException
-