Interface BlockGetter
- All Known Subinterfaces:
FarmingWorld, RedstoneWorld, SignalGetter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Read-only access to the blocks of a world.
- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptionblockAt(BlockPosition position) Returns the state at a position, ornullwhen it is not loaded.
-
Method Details
-
blockAt
Returns the state at a position, ornullwhen it is not loaded.- Parameters:
position- the block position- Returns:
- the state at a position, or
nullwhen it is not loaded - Since:
- 0.1.0
-