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 BlockEntity
Get theBlockEntity
at the given position if it exists.default @Nullable ModelDataManager
Retrieves the model data manager for this level.private BlockGetter
self()
-
Method Details
-
self
-
getExistingBlockEntity
Get theBlockEntity
at the given position if it exists.Level.getBlockEntity(BlockPos)
would create a newBlockEntity
if theBlock
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
Retrieves the model data manager for this level. This will benull
on a server level.
-