Package com.ardorcraft.world
Interface BlockProvider
- All Known Subinterfaces:
ChunkModifier
- All Known Implementing Classes:
BlockWorld
public interface BlockProvider
Proxy for serving up block data.
-
Method Summary
Modifier and TypeMethodDescriptionint
getBlock
(int x, int y, int z) Get block id for world coordinate x, y, zint
getBlockExtra
(int x, int y, int z) Get block extra data for world coordinate x, y, z.
bits 0,1,2 = orientation
bits 3,4,5,6 = age (or something else)
bit 7 = whatever
-
Method Details
-
getBlock
int getBlock(int x, int y, int z) Get block id for world coordinate x, y, z- Parameters:
x
- X coordinatey
- Y coordinatez
- Z coordinate- Returns:
- Block id at position
-
getBlockExtra
int getBlockExtra(int x, int y, int z) Get block extra data for world coordinate x, y, z.
bits 0,1,2 = orientation
bits 3,4,5,6 = age (or something else)
bit 7 = whatever- Parameters:
x
- X coordinatey
- Y coordinatez
- Z coordinate- Returns:
- Block id at position
-