class ChunkIOProvider
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ConcurrentLinkedQueue<java.lang.Runnable> |
callbacks |
private Chunk |
chunk |
private QueuedChunk |
chunkInfo |
private AnvilChunkLoader |
loader |
private NBTTagCompound |
nbt |
private ChunkProviderServer |
provider |
private boolean |
ran |
Constructor and Description |
---|
ChunkIOProvider(QueuedChunk chunk,
AnvilChunkLoader loader,
ChunkProviderServer provider) |
Modifier and Type | Method and Description |
---|---|
void |
addCallback(java.lang.Runnable callback) |
Chunk |
getChunk() |
QueuedChunk |
getChunkInfo() |
boolean |
hasCallback() |
void |
removeCallback(java.lang.Runnable callback) |
void |
run() |
void |
runCallbacks() |
boolean |
runFinished() |
void |
syncCallback() |
private final QueuedChunk chunkInfo
private final AnvilChunkLoader loader
private final ChunkProviderServer provider
private Chunk chunk
private NBTTagCompound nbt
private final java.util.concurrent.ConcurrentLinkedQueue<java.lang.Runnable> callbacks
private boolean ran
ChunkIOProvider(QueuedChunk chunk, AnvilChunkLoader loader, ChunkProviderServer provider)
public void addCallback(java.lang.Runnable callback)
public void removeCallback(java.lang.Runnable callback)
public void run()
run
in interface java.lang.Runnable
public void syncCallback()
public Chunk getChunk()
public boolean runFinished()
public boolean hasCallback()
public void runCallbacks()
public QueuedChunk getChunkInfo()