public interface WorldView extends BlockRenderView, CollisionView, BiomeAccess.Storage
Modifier and Type | Method and Description |
---|---|
default boolean |
containsFluid(Box box) |
int |
getAmbientDarkness() |
default Biome |
getBiome(BlockPos pos) |
BiomeAccess |
getBiomeAccess() |
default Biome |
getBiomeForNoiseGen(int biomeX,
int biomeY,
int biomeZ) |
default float |
getBrightness(BlockPos pos)
Deprecated.
|
default Chunk |
getChunk(BlockPos pos) |
default Chunk |
getChunk(int chunkX,
int chunkZ) |
default Chunk |
getChunk(int chunkX,
int chunkZ,
ChunkStatus status) |
Chunk |
getChunk(int chunkX,
int chunkZ,
ChunkStatus leastStatus,
boolean create) |
default int |
getColor(BlockPos pos,
ColorResolver colorResolver) |
DimensionType |
getDimension() |
default BlockView |
getExistingChunk(int chunkX,
int chunkZ) |
Biome |
getGeneratorStoredBiome(int biomeX,
int biomeY,
int biomeZ) |
default int |
getLightLevel(BlockPos pos) |
default int |
getLightLevel(BlockPos pos,
int ambientDarkness) |
int |
getSeaLevel()
Deprecated.
|
default int |
getStrongRedstonePower(BlockPos pos,
Direction direction) |
default BlockPos |
getTopPosition(Heightmap.Type heightmap,
BlockPos pos) |
int |
getTopY(Heightmap.Type heightmap,
int x,
int z) |
default boolean |
isAir(BlockPos pos) |
default boolean |
isChunkLoaded(BlockPos pos)
Deprecated.
|
boolean |
isChunkLoaded(int chunkX,
int chunkZ)
Deprecated.
|
boolean |
isClient()
Checks if this world view is on the logical client.
|
default boolean |
isRegionLoaded(BlockPos min,
BlockPos max)
Deprecated.
|
default boolean |
isRegionLoaded(int minX,
int minY,
int minZ,
int maxX,
int maxY,
int maxZ)
Deprecated.
|
default boolean |
isSkyVisibleAllowingSea(BlockPos pos) |
default boolean |
isWater(BlockPos pos) |
default Stream<BlockState> |
method_29556(Box box) |
getBaseLightLevel, getBrightness, getLightingProvider, getLightLevel, isSkyVisible
canPlace, getBlockCollisions, getBlockCollisions, getCollisions, getEntityCollisions, getWorldBorder, intersectsEntities, intersectsEntities, isBlockSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty
getBlockEntity, getBlockState, getDismountHeight, getDismountHeight, getFluidState, getHeight, getLuminance, getMaxLightLevel, method_29546, raycast, raycast, raycastBlock
@Nullable Chunk getChunk(int chunkX, int chunkZ, ChunkStatus leastStatus, boolean create)
@Deprecated boolean isChunkLoaded(int chunkX, int chunkZ)
int getTopY(Heightmap.Type heightmap, int x, int z)
int getAmbientDarkness()
BiomeAccess getBiomeAccess()
default Stream<BlockState> method_29556(Box box)
@Environment(value=CLIENT) default int getColor(BlockPos pos, ColorResolver colorResolver)
getColor
in interface BlockRenderView
default Biome getBiomeForNoiseGen(int biomeX, int biomeY, int biomeZ)
getBiomeForNoiseGen
in interface BiomeAccess.Storage
Biome getGeneratorStoredBiome(int biomeX, int biomeY, int biomeZ)
boolean isClient()
If the value returned is false, it is expected that this world is present on a logical server.
@Deprecated int getSeaLevel()
DimensionType getDimension()
default BlockPos getTopPosition(Heightmap.Type heightmap, BlockPos pos)
default boolean isAir(BlockPos pos)
default boolean isSkyVisibleAllowingSea(BlockPos pos)
@Deprecated default float getBrightness(BlockPos pos)
default Chunk getChunk(int chunkX, int chunkZ)
default Chunk getChunk(int chunkX, int chunkZ, ChunkStatus status)
@Nullable default BlockView getExistingChunk(int chunkX, int chunkZ)
getExistingChunk
in interface CollisionView
default boolean isWater(BlockPos pos)
default boolean containsFluid(Box box)
default int getLightLevel(BlockPos pos)
default int getLightLevel(BlockPos pos, int ambientDarkness)
@Deprecated default boolean isChunkLoaded(BlockPos pos)
@Deprecated default boolean isRegionLoaded(BlockPos min, BlockPos max)
@Deprecated default boolean isRegionLoaded(int minX, int minY, int minZ, int maxX, int maxY, int maxZ)