public class PooledLightUpdateQueue
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
PooledLightUpdateQueue.LightUpdateQueueIterator |
static class |
PooledLightUpdateQueue.Pool |
| Constructor and Description |
|---|
PooledLightUpdateQueue(PooledLightUpdateQueue.Pool pool) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int x,
int y,
int z,
int val)
Not thread-safe! Adds an encoded long value into this queue.
|
boolean |
isEmpty()
Thread-safe method to check whether or not this queue has work to do.
|
PooledLightUpdateQueue.LightUpdateQueueIterator |
iterator()
Not thread safe! Creates an iterator over the values in this queue.
|
int |
size()
Not thread-safe! If you must know whether or not the queue is empty, please use
isEmpty(). |
public PooledLightUpdateQueue(PooledLightUpdateQueue.Pool pool)
public int size()
isEmpty().public boolean isEmpty()
public void add(int x,
int y,
int z,
int val)
x - x coordinatey - y coordinatez - z coordinateval - The encoded value to addpublic PooledLightUpdateQueue.LightUpdateQueueIterator iterator()