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 org.spongepowered.api.world.volume.biome.BiomeVolume
BiomeVolume.Immutable, BiomeVolume.Modifiable<M extends BiomeVolume.Modifiable<M>>, BiomeVolume.Mutable, BiomeVolume.Streamable<B extends BiomeVolume.Streamable<B>>, BiomeVolume.Unmodifiable<U extends BiomeVolume.Unmodifiable<U>>Nested classes/interfaces inherited from interface org.spongepowered.api.world.volume.block.entity.BlockEntityVolume
BlockEntityVolume.Modifiable<M extends BlockEntityVolume.Modifiable<M>>, BlockEntityVolume.Mutable, BlockEntityVolume.Streamable<T extends BlockEntityVolume.Streamable<T>>, BlockEntityVolume.Unmodifiable<U extends BlockEntityVolume.Unmodifiable<U>>Nested classes/interfaces inherited from interface org.spongepowered.api.world.volume.block.BlockVolume
BlockVolume.Immutable, BlockVolume.Modifiable<M extends BlockVolume.Modifiable<M>>, BlockVolume.Mutable, BlockVolume.Streamable<B extends BlockVolume.Streamable<B>>, BlockVolume.Unmodifiable<U extends BlockVolume.Unmodifiable<U>>Nested classes/interfaces inherited from interface org.spongepowered.api.world.volume.game.LocationBaseDataHolder
LocationBaseDataHolder.MutableNested classes/interfaces inherited from interface org.spongepowered.api.util.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 org.spongepowered.api.world.volume.biome.BiomeVolume
biome, biomeMethods inherited from interface org.spongepowered.api.world.volume.biome.BiomeVolume.Streamable
biomeStreamMethods inherited from interface org.spongepowered.api.world.volume.block.entity.BlockEntityVolume
blockEntities, blockEntities, blockEntity, blockEntityMethods inherited from interface org.spongepowered.api.world.volume.block.entity.BlockEntityVolume.Streamable
blockEntityStreamMethods inherited from interface org.spongepowered.api.world.volume.block.BlockVolume
block, block, fluid, fluid, highestPositionAt, highestYAt, highestYAtMethods inherited from interface org.spongepowered.api.world.volume.block.BlockVolume.Streamable
blockStateStreamMethods inherited from interface org.spongepowered.api.world.volume.game.ChunkVolume
chunk, chunk, chunkAtBlock, chunkAtBlock, chunkLayout, hasChunk, hasChunk, hasChunkAtBlock, hasChunkAtBlock, isChunkLoaded, isChunkLoaded, isChunkLoadedAtBlock, isChunkLoadedAtBlockMethods inherited from interface org.spongepowered.api.world.volume.game.EnvironmentalVolume
isSkylightMax, light, light, light, light, light, lightMethods inherited from interface org.spongepowered.api.world.volume.game.HeightAwareVolume
height, heightMethods inherited from interface org.spongepowered.api.world.volume.game.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 org.spongepowered.api.world.volume.game.PrimitiveGameVolume
emittedLight, emittedLight, height, maximumLightMethods inherited from interface org.spongepowered.api.util.RandomProvider
random
-
Method Details
-
worldType
WorldType worldType() -
border
WorldBorder border()Gets theWorldBorderfor thisRegion.- Returns:
- The 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)
-