Interface BlockApiLookup.BlockApiProvider<A,C>

Enclosing interface:
BlockApiLookup<A,C>
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 static interface BlockApiLookup.BlockApiProvider<A,C>
  • Method Summary

    Modifier and Type
    Method
    Description
    find(World world, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, C context)
    Return an API of type A if available in the world at the given pos with the given context, or null otherwise.
  • Method Details

    • find

      @Nullable A find(World world, BlockPos pos, BlockState state, @Nullable @Nullable BlockEntity blockEntity, C context)
      Return an API of type A if available in the world at the given pos with the given context, or null otherwise.
      Parameters:
      world - The world.
      pos - The position in the world.
      state - The block state.
      blockEntity - The block entity, if it exists in the world.
      context - Additional context passed to the query.
      Returns:
      An API of type A, or null if no API is available.