接口 LevelReader
- 所有超级接口:
BiomeManager.NoiseBiomeSource
,BlockAndTintGetter
,BlockGetter
,CollisionGetter
,IForgeBlockAndTintGetter
,IForgeBlockGetter
,LevelHeightAccessor
,SignalGetter
- 所有已知实现类:
ClientLevel
,Level
,ServerLevel
,WorldGenRegion
public interface LevelReader
extends BlockAndTintGetter, CollisionGetter, SignalGetter, BiomeManager.NoiseBiomeSource
-
字段概要
从接口继承的字段 net.minecraft.world.level.BlockGetter
MAX_BLOCK_ITERATIONS_ALONG_TRAVEL
从接口继承的字段 net.minecraft.world.level.SignalGetter
DIRECTIONS
-
方法概要
修饰符和类型方法说明default boolean
canSeeSkyFromBelowWater
(BlockPos p_46862_) default boolean
containsAnyLiquid
(AABB p_46856_) default Stream
<BlockState> getBlockStatesIfLoaded
(AABB p_46848_) default int
getBlockTint
(BlockPos p_46836_, ColorResolver p_46837_) default ChunkAccess
getChunk
(int p_46807_, int p_46808_) default ChunkAccess
getChunk
(int p_46820_, int p_46821_, ChunkStatus p_331751_) getChunk
(int p_46823_, int p_46824_, ChunkStatus p_333298_, boolean p_46826_) default ChunkAccess
default BlockGetter
getChunkForCollisions
(int p_46845_, int p_46846_) default int
int
getHeight
(Heightmap.Types p_46827_, int p_46828_, int p_46829_) default BlockPos
getHeightmapPos
(Heightmap.Types p_46830_, BlockPos p_46831_) default float
getLightLevelDependentMagicValue
(BlockPos p_220418_) 已过时。default int
getMaxLocalRawBrightness
(BlockPos p_46804_) default int
getMaxLocalRawBrightness
(BlockPos p_46850_, int p_46851_) default int
getMinY()
getNoiseBiome
(int p_204163_, int p_204164_, int p_204165_) default float
getPathfindingCostFromLightLevels
(BlockPos p_220420_) int
int
getUncachedNoiseBiome
(int p_204159_, int p_204160_, int p_204161_) boolean
hasChunk
(int p_46838_, int p_46839_) 已过时。default boolean
hasChunkAt
(int p_151578_, int p_151579_) 已过时。default boolean
hasChunkAt
(BlockPos p_46806_) 已过时。default boolean
hasChunksAt
(int p_151573_, int p_151574_, int p_151575_, int p_151576_) 已过时。default boolean
hasChunksAt
(int p_46813_, int p_46814_, int p_46815_, int p_46816_, int p_46817_, int p_46818_) 已过时。default boolean
hasChunksAt
(BlockPos p_46833_, BlockPos p_46834_) 已过时。default <T> HolderLookup
<T> holderLookup
(ResourceKey<? extends Registry<? extends T>> p_249578_) default boolean
isAreaLoaded
(BlockPos center, int range) 已过时。boolean
default boolean
isEmptyBlock
(BlockPos p_46860_) default boolean
从接口继承的方法 net.minecraft.world.level.BlockAndTintGetter
canSeeSky, getBrightness, getLightEngine, getRawBrightness, getShade
从接口继承的方法 net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, isBlockInLine
从接口继承的方法 net.minecraft.world.level.CollisionGetter
clipIncludingBorder, collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockAndLiquidCollisions, getBlockCollisions, getCollisions, getEntityCollisions, getWorldBorder, isUnobstructed, isUnobstructed, isUnobstructed, noBlockCollision, noCollision, noCollision, noCollision, noCollision
从接口继承的方法 net.minecraftforge.client.extensions.IForgeBlockAndTintGetter
getShade
从接口继承的方法 net.minecraftforge.common.extensions.IForgeBlockGetter
getExistingBlockEntity, getModelDataManager
从接口继承的方法 net.minecraft.world.level.LevelHeightAccessor
getMaxSectionY, getMaxY, getMinSectionY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, isOutsideBuildHeight, isOutsideBuildHeight
从接口继承的方法 net.minecraft.world.level.SignalGetter
getBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignal
-
方法详细资料
-
getChunk
-
hasChunk
已过时。 -
getHeight
-
getSkyDarken
int getSkyDarken() -
getBiomeManager
BiomeManager getBiomeManager() -
getBiome
-
getBlockStatesIfLoaded
-
getBlockTint
- 指定者:
getBlockTint
在接口中BlockAndTintGetter
-
getNoiseBiome
- 指定者:
getNoiseBiome
在接口中BiomeManager.NoiseBiomeSource
-
getUncachedNoiseBiome
-
isClientSide
boolean isClientSide() -
getSeaLevel
int getSeaLevel() -
dimensionType
DimensionType dimensionType() -
getMinY
default int getMinY()- 指定者:
getMinY
在接口中LevelHeightAccessor
-
getHeight
default int getHeight()- 指定者:
getHeight
在接口中LevelHeightAccessor
-
getHeightmapPos
-
isEmptyBlock
-
canSeeSkyFromBelowWater
-
getPathfindingCostFromLightLevels
-
getLightLevelDependentMagicValue
已过时。 -
getChunk
-
getChunk
-
getChunk
-
getChunkForCollisions
- 指定者:
getChunkForCollisions
在接口中CollisionGetter
-
isWaterAt
-
containsAnyLiquid
-
getMaxLocalRawBrightness
-
getMaxLocalRawBrightness
-
isAreaLoaded
已过时。 -
hasChunkAt
已过时。 -
hasChunkAt
已过时。 -
hasChunksAt
已过时。 -
hasChunksAt
@Deprecated default boolean hasChunksAt(int p_46813_, int p_46814_, int p_46815_, int p_46816_, int p_46817_, int p_46818_) 已过时。 -
hasChunksAt
已过时。 -
registryAccess
RegistryAccess registryAccess() -
enabledFeatures
FeatureFlagSet enabledFeatures() -
holderLookup
-