Interface BlockProvider

All Known Subinterfaces:
ChunkModifier
All Known Implementing Classes:
BlockWorld

public interface BlockProvider
Proxy for serving up block data.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getBlock(int x, int y, int z)
    Get block id for world coordinate x, y, z
    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
  • Method Details

    • getBlock

      int getBlock(int x, int y, int z)
      Get block id for world coordinate x, y, z
      Parameters:
      x - X coordinate
      y - Y coordinate
      z - 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 coordinate
      y - Y coordinate
      z - Z coordinate
      Returns:
      Block id at position