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 Details

    • self

      private BlockGetter self()
    • getExistingBlockEntity

      @Nullable default @Nullable BlockEntity getExistingBlockEntity(BlockPos pos)
      Get the BlockEntity at the given position if it exists.

      Level.getBlockEntity(BlockPos) would create a new BlockEntity if the Block has 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
    • getModelDataManager

      @Nullable default @Nullable ModelDataManager getModelDataManager()
      Retrieves the model data manager for this level. This will be null on a server level.