Interface Region<R extends Region<R>>
- All Superinterfaces:
BiomeVolume, BiomeVolume.Streamable<R>, BlockEntityVolume, BlockEntityVolume.Streamable<R>, BlockVolume, BlockVolume.Streamable<R>, ChunkVolume, EnvironmentalVolume, HeightAwareVolume, LocationBaseDataHolder, PrimitiveGameVolume, RandomProvider, Volume
- All Known Subinterfaces:
ClientWorld, GenerationRegion, ServerWorld, World<W,L>, WorldLike<P>
public interface Region<R extends Region<R>>
extends EnvironmentalVolume, BiomeVolume.Streamable<R>, BlockVolume.Streamable<R>, BlockEntityVolume.Streamable<R>, ChunkVolume, HeightAwareVolume, RandomProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface BiomeVolume
BiomeVolume.Immutable, BiomeVolume.Modifiable<M>, BiomeVolume.Mutable, BiomeVolume.Streamable<B>, BiomeVolume.Unmodifiable<U>Nested classes/interfaces inherited from interface BlockEntityVolume
BlockEntityVolume.Modifiable<M>, BlockEntityVolume.Mutable, BlockEntityVolume.Streamable<T>, BlockEntityVolume.Unmodifiable<U>Nested classes/interfaces inherited from interface BlockVolume
BlockVolume.Immutable, BlockVolume.Modifiable<M>, BlockVolume.Mutable, BlockVolume.Streamable<B>, BlockVolume.Unmodifiable<U>Nested classes/interfaces inherited from interface LocationBaseDataHolder
LocationBaseDataHolder.MutableNested classes/interfaces inherited from interface RandomProvider
RandomProvider.Source -
Method Summary
Modifier and TypeMethodDescriptionborder()Gets theWorldBorderfor thisRegion.booleancanSeeSky(int x, int y, int z) default booleanbooleancontainsAnyLiquids(AABB aabb) booleanhasLiquid(int x, int y, int z) default booleanbooleanisAreaLoaded(int xStart, int yStart, int zStart, int xEnd, int yEnd, int zEnd, boolean allowEmpty) default booleanisAreaLoaded(Vector3i position, int radius) default booleanisAreaLoaded(Vector3i center, int radius, boolean allowEmpty) default booleanisAreaLoaded(Vector3i from, Vector3i to) default booleanisAreaLoaded(Vector3i from, Vector3i to, boolean allowEmpty) default booleanisBlockLoaded(int x, int y, int z) default booleanisBlockLoaded(int x, int y, int z, boolean allowEmpty) default booleanisBlockLoaded(Vector3i position) default booleanisBlockLoaded(Vector3i position, boolean allowEmpty) booleanisCollisionBoxesEmpty(@Nullable Entity entity, AABB aabb) booleanisInBorder(Entity entity) intseaLevel()Gets the sea level of the world.setBorder(WorldBorder worldBorder) Sets thsWorldBorderfor thisRegion.intMethods inherited from interface BiomeVolume
biome, biomeMethods inherited from interface BiomeVolume.Streamable
biomeStreamMethods inherited from interface BlockEntityVolume
blockEntities, blockEntities, blockEntity, blockEntityMethods inherited from interface BlockEntityVolume.Streamable
blockEntityStreamMethods inherited from interface BlockVolume
block, block, blockPalette, fluid, fluid, highestPositionAt, highestYAt, highestYAtMethods inherited from interface BlockVolume.Streamable
blockStateStreamMethods inherited from interface ChunkVolume
chunk, chunk, chunkAtBlock, chunkAtBlock, chunkLayout, hasChunk, hasChunk, hasChunkAtBlock, hasChunkAtBlock, isChunkLoaded, isChunkLoaded, isChunkLoadedAtBlock, isChunkLoadedAtBlockMethods inherited from interface EnvironmentalVolume
isSkylightMax, light, light, light, light, light, lightMethods inherited from interface HeightAwareVolume
height, heightMethods inherited from interface LocationBaseDataHolder
get, get, get, get, getDouble, getDouble, getDouble, getDouble, getInt, getInt, getInt, getInt, getLong, getLong, getLong, getLong, getValue, getValue, getValue, getValue, getValues, getValues, keys, keys, orElse, orElse, orElse, orElse, orElse, orElse, orElse, orElse, orNull, orNull, orNull, orNull, require, require, require, require, supports, supports, supports, supports, supports, supportsMethods inherited from interface PrimitiveGameVolume
emittedLight, emittedLight, height, maximumLightMethods inherited from interface RandomProvider
random
-
Method Details
-
worldType
WorldType worldType() -
border
-
setBorder
- Parameters:
worldBorder- The border to set.- Returns:
- The
WorldBorderthat was set, which may not be the border that was provided.
-
isInBorder
-
canSeeSky
-
canSeeSky
boolean canSeeSky(int x, int y, int z) -
hasLiquid
-
hasLiquid
boolean hasLiquid(int x, int y, int z) -
containsAnyLiquids
-
skylightSubtracted
int skylightSubtracted() -
seaLevel
int seaLevel()Gets the sea level of the world.- Returns:
- The sea level
-
isCollisionBoxesEmpty
-
isBlockLoaded
default boolean isBlockLoaded(int x, int y, int z) -
isBlockLoaded
default boolean isBlockLoaded(int x, int y, int z, boolean allowEmpty) -
isBlockLoaded
-
isBlockLoaded
-
isAreaLoaded
-
isAreaLoaded
-
isAreaLoaded
-
isAreaLoaded
-
isAreaLoaded
boolean isAreaLoaded(int xStart, int yStart, int zStart, int xEnd, int yEnd, int zEnd, boolean allowEmpty)
-