接口 IForgeBlockGetter
- 所有已知子接口:
BlockAndTintGetter
,BlockGetter
,CollisionGetter
,CommonLevelAccessor
,LevelAccessor
,LevelReader
,LevelTimeAccess
,LightChunk
,ServerLevelAccessor
,SignalGetter
,WorldGenLevel
- 所有已知实现类:
ChunkAccess
,ClientLevel
,EmptyBlockAndTintGetter
,EmptyBlockGetter
,EmptyLevelChunk
,FallingBlockRenderState
,ImposterProtoChunk
,Level
,LevelChunk
,PathNavigationRegion
,ProtoChunk
,RenderChunkRegion
,ServerLevel
,WorldGenRegion
public interface IForgeBlockGetter
-
方法概要
修饰符和类型方法说明default @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()
-
方法详细资料
-
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).- 返回:
- 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.
-