public final class SpongeChunkLayout extends Object implements org.spongepowered.api.world.storage.ChunkLayout
Modifier and Type | Field and Description |
---|---|
static com.flowpowered.math.vector.Vector3i |
CHUNK_SIZE |
static SpongeChunkLayout |
instance |
Modifier and Type | Method and Description |
---|---|
Optional<com.flowpowered.math.vector.Vector3i> |
addToChunk(int cx,
int cy,
int cz,
int ox,
int oy,
int oz) |
Optional<com.flowpowered.math.vector.Vector3i> |
addToChunk(com.flowpowered.math.vector.Vector3i chunkCoords,
com.flowpowered.math.vector.Vector3i chunkOffset) |
com.flowpowered.math.vector.Vector3i |
getChunkSize() |
com.flowpowered.math.vector.Vector3i |
getSpaceMax() |
com.flowpowered.math.vector.Vector3i |
getSpaceMin() |
com.flowpowered.math.vector.Vector3i |
getSpaceOrigin() |
com.flowpowered.math.vector.Vector3i |
getSpaceSize() |
boolean |
isInChunk(int x,
int y,
int z) |
boolean |
isInChunk(int wx,
int wy,
int wz,
int cx,
int cy,
int cz) |
boolean |
isInChunk(com.flowpowered.math.vector.Vector3i localCoords) |
boolean |
isInChunk(com.flowpowered.math.vector.Vector3i worldCoords,
com.flowpowered.math.vector.Vector3i chunkCoords) |
boolean |
isValidChunk(int x,
int y,
int z) |
boolean |
isValidChunk(com.flowpowered.math.vector.Vector3i coords) |
Optional<com.flowpowered.math.vector.Vector3i> |
moveToChunk(int x,
int y,
int z,
org.spongepowered.api.util.Direction direction) |
Optional<com.flowpowered.math.vector.Vector3i> |
moveToChunk(int x,
int y,
int z,
org.spongepowered.api.util.Direction direction,
int steps) |
Optional<com.flowpowered.math.vector.Vector3i> |
moveToChunk(com.flowpowered.math.vector.Vector3i chunkCoords,
org.spongepowered.api.util.Direction direction) |
Optional<com.flowpowered.math.vector.Vector3i> |
moveToChunk(com.flowpowered.math.vector.Vector3i chunkCoords,
org.spongepowered.api.util.Direction direction,
int steps) |
Optional<com.flowpowered.math.vector.Vector3i> |
toChunk(int x,
int y,
int z) |
Optional<com.flowpowered.math.vector.Vector3i> |
toChunk(com.flowpowered.math.vector.Vector3i worldCoords) |
Optional<com.flowpowered.math.vector.Vector3i> |
toWorld(int x,
int y,
int z) |
Optional<com.flowpowered.math.vector.Vector3i> |
toWorld(com.flowpowered.math.vector.Vector3i chunkCoords) |
public static final com.flowpowered.math.vector.Vector3i CHUNK_SIZE
public static final SpongeChunkLayout instance
public com.flowpowered.math.vector.Vector3i getChunkSize()
getChunkSize
in interface org.spongepowered.api.world.storage.ChunkLayout
public com.flowpowered.math.vector.Vector3i getSpaceMax()
getSpaceMax
in interface org.spongepowered.api.world.storage.ChunkLayout
public com.flowpowered.math.vector.Vector3i getSpaceMin()
getSpaceMin
in interface org.spongepowered.api.world.storage.ChunkLayout
public com.flowpowered.math.vector.Vector3i getSpaceSize()
getSpaceSize
in interface org.spongepowered.api.world.storage.ChunkLayout
public com.flowpowered.math.vector.Vector3i getSpaceOrigin()
getSpaceOrigin
in interface org.spongepowered.api.world.storage.ChunkLayout
public boolean isValidChunk(com.flowpowered.math.vector.Vector3i coords)
isValidChunk
in interface org.spongepowered.api.world.storage.ChunkLayout
public boolean isValidChunk(int x, int y, int z)
isValidChunk
in interface org.spongepowered.api.world.storage.ChunkLayout
public boolean isInChunk(com.flowpowered.math.vector.Vector3i localCoords)
isInChunk
in interface org.spongepowered.api.world.storage.ChunkLayout
public boolean isInChunk(int x, int y, int z)
isInChunk
in interface org.spongepowered.api.world.storage.ChunkLayout
public boolean isInChunk(com.flowpowered.math.vector.Vector3i worldCoords, com.flowpowered.math.vector.Vector3i chunkCoords)
isInChunk
in interface org.spongepowered.api.world.storage.ChunkLayout
public boolean isInChunk(int wx, int wy, int wz, int cx, int cy, int cz)
isInChunk
in interface org.spongepowered.api.world.storage.ChunkLayout
public Optional<com.flowpowered.math.vector.Vector3i> toChunk(com.flowpowered.math.vector.Vector3i worldCoords)
toChunk
in interface org.spongepowered.api.world.storage.ChunkLayout
public Optional<com.flowpowered.math.vector.Vector3i> toChunk(int x, int y, int z)
toChunk
in interface org.spongepowered.api.world.storage.ChunkLayout
public Optional<com.flowpowered.math.vector.Vector3i> toWorld(com.flowpowered.math.vector.Vector3i chunkCoords)
toWorld
in interface org.spongepowered.api.world.storage.ChunkLayout
public Optional<com.flowpowered.math.vector.Vector3i> toWorld(int x, int y, int z)
toWorld
in interface org.spongepowered.api.world.storage.ChunkLayout
public Optional<com.flowpowered.math.vector.Vector3i> addToChunk(com.flowpowered.math.vector.Vector3i chunkCoords, com.flowpowered.math.vector.Vector3i chunkOffset)
addToChunk
in interface org.spongepowered.api.world.storage.ChunkLayout
public Optional<com.flowpowered.math.vector.Vector3i> addToChunk(int cx, int cy, int cz, int ox, int oy, int oz)
addToChunk
in interface org.spongepowered.api.world.storage.ChunkLayout
public Optional<com.flowpowered.math.vector.Vector3i> moveToChunk(int x, int y, int z, org.spongepowered.api.util.Direction direction)
moveToChunk
in interface org.spongepowered.api.world.storage.ChunkLayout
public Optional<com.flowpowered.math.vector.Vector3i> moveToChunk(com.flowpowered.math.vector.Vector3i chunkCoords, org.spongepowered.api.util.Direction direction)
moveToChunk
in interface org.spongepowered.api.world.storage.ChunkLayout
public Optional<com.flowpowered.math.vector.Vector3i> moveToChunk(int x, int y, int z, org.spongepowered.api.util.Direction direction, int steps)
moveToChunk
in interface org.spongepowered.api.world.storage.ChunkLayout
public Optional<com.flowpowered.math.vector.Vector3i> moveToChunk(com.flowpowered.math.vector.Vector3i chunkCoords, org.spongepowered.api.util.Direction direction, int steps)
moveToChunk
in interface org.spongepowered.api.world.storage.ChunkLayout