Class DictionaryData
java.lang.Object
zombie.world.DictionaryData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map
<Short, EntityInfo> protected final Map
<String, EntityInfo> protected short
protected byte
protected int
protected byte[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
protected final void
getDictionaryMods
(List<String> list0) protected final EntityInfo
getEntityInfoFromID
(short short0) protected final EntityInfo
getEntityInfoFromType
(String string) protected final short
getEntityRegistryID
(String string) protected final String
getEntityTypeDebugString
(short short0) protected final String
getEntityTypeFromID
(short short0) protected final byte
getIdForObjectName
(String string) protected final int
getIdForSpriteName
(String string) protected final ItemInfo
getItemInfoFromID
(short short0) protected final ItemInfo
getItemInfoFromType
(String string) protected final short
getItemRegistryID
(String string) protected final String
getItemTypeDebugString
(short short0) protected final String
getItemTypeFromID
(short short0) protected final void
getModuleList
(List<String> list) protected final String
getObjectNameFromID
(byte byte0) protected final String
getSpriteNameFromID
(int int0) protected boolean
isClient()
protected void
load()
protected void
loadFromByteBuffer
(ByteBuffer byteBuffer) protected void
protected <T extends DictionaryInfo<?>>
voidparseCurrentInfoSet
(Map<String, T> map) protected <T extends DictionaryInfo<?>>
voidparseInfoLoadList
(Map<String, T> map) protected void
parseObjectNameLoadList
(List<String> list) protected void
reset()
protected void
save()
protected void
saveAsText
(String string1) protected void
saveToByteBuffer
(ByteBuffer byteBuffer)
-
Field Details
-
itemIdToInfoMap
-
itemTypeToInfoMap
-
entityIdToInfoMap
-
entityTypeToInfoMap
-
spriteNameToIdMap
-
spriteIdToNameMap
-
objectNameToIdMap
-
objectIdToNameMap
-
unsetObject
-
unsetSprites
-
NextInfoID
protected short NextInfoID -
NextSpriteNameID
protected int NextSpriteNameID -
NextObjectNameID
protected byte NextObjectNameID -
serverDataCache
protected byte[] serverDataCache
-
-
Constructor Details
-
DictionaryData
protected DictionaryData()
-
-
Method Details
-
isClient
protected boolean isClient() -
reset
protected void reset() -
getItemInfoFromType
-
getItemInfoFromID
-
getItemRegistryID
-
getItemTypeFromID
-
getItemTypeDebugString
-
getEntityInfoFromType
-
getEntityInfoFromID
-
getEntityRegistryID
-
getEntityTypeFromID
-
getEntityTypeDebugString
-
getSpriteNameFromID
-
getIdForSpriteName
-
getObjectNameFromID
-
getIdForObjectName
-
getDictionaryMods
-
getModuleList
-
parseInfoLoadList
protected <T extends DictionaryInfo<?>> void parseInfoLoadList(Map<String, T> map) throws WorldDictionaryException- Throws:
WorldDictionaryException
-
parseCurrentInfoSet
- Throws:
WorldDictionaryException
-
parseCurrentInfoSet
protected <T extends DictionaryInfo<?>> void parseCurrentInfoSet(Map<String, T> map) throws WorldDictionaryException- 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
-