Interface IForgeBlockGetter
- All Known Subinterfaces:
BlockAndTintGetter,BlockGetter,CollisionGetter,CommonLevelAccessor,LevelAccessor,LevelReader,LevelTimeAccess,ServerLevelAccessor,WorldGenLevel
- All Known Implementing Classes:
ChunkAccess,ClientLevel,EmptyBlockGetter,EmptyLevelChunk,ImposterProtoChunk,Level,LevelChunk,PathNavigationRegion,ProtoChunk,RenderChunkRegion,ServerLevel,WorldGenRegion
public interface IForgeBlockGetter
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable BlockEntityGet theBlockEntityat the given position if it exists.private BlockGetterself()
-
Method Details
-
self
-
getExistingBlockEntity
Get theBlockEntityat the given position if it exists.Level.getBlockEntity(BlockPos)would create a newBlockEntityif theBlockhas one, but it has not been placed in the world yet (This can happen on world load).- Returns:
- The BlockEntity at the given position or null if it doesn't exist
-