Package zombie.globalObjects
Class SGlobalObjectSystem
java.lang.Object
zombie.globalObjects.SGlobalObjectSystem
public final class SGlobalObjectSystem
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected int
loadedWorldVersion
protected GlobalObjectLookup
lookup
protected KahluaTable
modData
protected java.util.HashSet
modDataKeys
protected java.lang.String
name
protected java.util.HashSet
objectModDataKeys
protected java.util.ArrayList
objects
-
Constructor Summary
Constructors Constructor Description SGlobalObjectSystem(java.lang.String string)
-
Method Summary
Modifier and Type Method Description java.util.ArrayList
allocList()
void
chunkLoaded(int int1, int int2)
void
finishedWithList(java.util.ArrayList arrayList)
KahluaTable
getInitialStateForClient()
KahluaTable
getModData()
GlobalObject
getObjectAt(int int1, int int2, int int3)
GlobalObject
getObjectByIndex(int int1)
int
getObjectCount()
java.util.ArrayList
getObjectsAdjacentTo(int int1, int int2, int int3)
java.util.ArrayList
getObjectsInChunk(int int1, int int2)
boolean
hasObjectsInChunk(int int1, int int2)
void
load()
void
load(java.nio.ByteBuffer byteBuffer, int int1)
int
loadedWorldVersion()
GlobalObject
newObject(int int1, int int2, int int3)
void
receiveClientCommand(java.lang.String string, IsoPlayer player, KahluaTable kahluaTable)
void
removeObject(GlobalObject globalObject)
void
Reset()
void
save()
void
save(java.nio.ByteBuffer byteBuffer)
void
sendCommand(java.lang.String string, KahluaTable kahluaTable)
void
setModDataKeys(KahluaTable kahluaTable)
void
setObjectModDataKeys(KahluaTable kahluaTable)
void
update()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
name
protected final java.lang.String name -
loadedWorldVersion
protected int loadedWorldVersion -
objects
protected final java.util.ArrayList objects -
lookup
-
modData
-
modDataKeys
protected final java.util.HashSet modDataKeys -
objectModDataKeys
protected final java.util.HashSet objectModDataKeys
-
-
Constructor Details
-
SGlobalObjectSystem
public SGlobalObjectSystem(java.lang.String string)
-
-
Method Details
-
setModDataKeys
-
setObjectModDataKeys
-
getModData
-
newObject
-
removeObject
public void removeObject(GlobalObject globalObject) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException- Throws:
java.lang.IllegalArgumentException
java.lang.IllegalStateException
-
getObjectAt
-
hasObjectsInChunk
public boolean hasObjectsInChunk(int int1, int int2) -
getObjectsInChunk
public java.util.ArrayList getObjectsInChunk(int int1, int int2) -
getObjectsAdjacentTo
public java.util.ArrayList getObjectsAdjacentTo(int int1, int int2, int int3) -
allocList
public java.util.ArrayList allocList() -
finishedWithList
public void finishedWithList(java.util.ArrayList arrayList) -
getObjectCount
public int getObjectCount() -
getObjectByIndex
-
update
public void update() -
chunkLoaded
public void chunkLoaded(int int1, int int2) -
sendCommand
-
receiveClientCommand
public void receiveClientCommand(java.lang.String string, IsoPlayer player, KahluaTable kahluaTable) -
getInitialStateForClient
-
loadedWorldVersion
public int loadedWorldVersion() -
load
public void load(java.nio.ByteBuffer byteBuffer, int int1) throws java.io.IOException- Throws:
java.io.IOException
-
save
public void save(java.nio.ByteBuffer byteBuffer) throws java.io.IOException- Throws:
java.io.IOException
-
load
public void load() -
save
public void save() -
Reset
public void Reset()
-