Interface ICachedRegion

All Superinterfaces:
IBlockTypeAccess

public interface ICachedRegion extends IBlockTypeAccess
Since:
9/24/2018
Author:
Brady
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    int
     
    boolean
    isCached(int blockX, int blockZ)
    Returns whether or not the block at the specified X and Z coordinates is cached in this world.

    Methods inherited from interface baritone.api.cache.IBlockTypeAccess

    getBlock, getBlock
  • Method Details

    • isCached

      boolean isCached(int blockX, int blockZ)
      Returns whether or not the block at the specified X and Z coordinates is cached in this world. Similar to ICachedWorld.isCached(int, int), however, the block coordinates should in on a scale from 0 to 511 (inclusive) because region sizes are 512x512 blocks.
      Parameters:
      blockX - The block X coordinate
      blockZ - The block Z coordinate
      Returns:
      Whether or not the specified XZ location is cached
      See Also:
    • getX

      int getX()
      Returns:
      The X coordinate of this region
    • getZ

      int getZ()
      Returns:
      The Z coordinate of this region