Interface BlockGetter

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface BlockGetter
Read-only access to the blocks of a world.
Since:
0.1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the state at a position, or null when it is not loaded.
  • Method Details

    • blockAt

      Returns the state at a position, or null when it is not loaded.
      Parameters:
      pos - the block position
      Returns:
      the state at a position, or null when it is not loaded
      Since:
      0.1.0