| Constructor and Description |
|---|
CubeMap() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<Cube> |
all()
Retrieve a collection of all cubes within this storage.
|
java.lang.Iterable<Cube> |
cubes(int startY,
int endY)
Iterate over all cubes between
startY and endY in this storage in order. |
void |
enqueueRelightChecks() |
net.minecraft.world.chunk.storage.ExtendedBlockStorage[] |
getStoragesToTick() |
boolean |
isEmpty()
Check if this storage is empty
|
java.util.Iterator<Cube> |
iterator()
Iterate over all cubes in this storage
|
void |
put(Cube cube)
Adds a cube
|
Cube |
remove(int cubeY)
Removes the cube at
cubeY |
@Nullable public Cube remove(int cubeY)
cubeYcubeY - cube y positionnullpublic void put(Cube cube)
cube - the cube to addpublic java.lang.Iterable<Cube> cubes(int startY, int endY)
startY and endY in this storage in order. If
startY < endY, order is bottom to top, otherwise order is top to bottom.startY - initial cube y positionendY - last cube y positionpublic java.util.Iterator<Cube> iterator()
iterator in interface java.lang.Iterable<Cube>public java.util.Collection<Cube> all()
public boolean isEmpty()
true if there are no cubes in this storage, false otherwisepublic net.minecraft.world.chunk.storage.ExtendedBlockStorage[] getStoragesToTick()
public void enqueueRelightChecks()