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.Mutable
-
Method Summary
Modifier and TypeMethodDescriptionborder()
Gets theWorldBorder
for thisRegion
.boolean
canSeeSky
(int x, int y, int z) default boolean
boolean
containsAnyLiquids
(AABB aabb) boolean
hasLiquid
(int x, int y, int z) default boolean
boolean
isAreaLoaded
(int xStart, int yStart, int zStart, int xEnd, int yEnd, int zEnd, boolean allowEmpty) default boolean
isAreaLoaded
(Vector3i position, int radius) default boolean
isAreaLoaded
(Vector3i center, int radius, boolean allowEmpty) default boolean
isAreaLoaded
(Vector3i from, Vector3i to) default boolean
isAreaLoaded
(Vector3i from, Vector3i to, boolean allowEmpty) default boolean
isBlockLoaded
(int x, int y, int z) default boolean
isBlockLoaded
(int x, int y, int z, boolean allowEmpty) default boolean
isBlockLoaded
(Vector3i position) default boolean
isBlockLoaded
(Vector3i position, boolean allowEmpty) boolean
isCollisionBoxesEmpty
(@Nullable Entity entity, AABB aabb) boolean
isInBorder
(Entity entity) int
seaLevel()
Gets the sea level of the world.setBorder
(WorldBorder worldBorder) Sets thsWorldBorder
for thisRegion
.int
Methods inherited from interface org.spongepowered.api.world.volume.biome.BiomeVolume
biome, biome
Methods inherited from interface org.spongepowered.api.world.volume.biome.BiomeVolume.Streamable
biomeStream
Methods inherited from interface org.spongepowered.api.world.volume.block.entity.BlockEntityVolume
blockEntities, blockEntities, blockEntity, blockEntity
Methods inherited from interface org.spongepowered.api.world.volume.block.entity.BlockEntityVolume.Streamable
blockEntityStream
Methods inherited from interface org.spongepowered.api.world.volume.block.BlockVolume
block, block, fluid, fluid, highestPositionAt, highestYAt, highestYAt
Methods inherited from interface org.spongepowered.api.world.volume.block.BlockVolume.Streamable
blockStateStream
Methods inherited from interface org.spongepowered.api.world.volume.game.ChunkVolume
chunk, chunk, chunkAtBlock, chunkAtBlock, chunkLayout, hasChunk, hasChunk, hasChunkAtBlock, hasChunkAtBlock, isChunkLoaded, isChunkLoaded, isChunkLoadedAtBlock, isChunkLoadedAtBlock
Methods inherited from interface org.spongepowered.api.world.volume.game.EnvironmentalVolume
isSkylightMax, light, light, light, light, light, light
Methods inherited from interface org.spongepowered.api.world.volume.game.HeightAwareVolume
height, height
Methods 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, supports
Methods inherited from interface org.spongepowered.api.world.volume.game.PrimitiveGameVolume
emittedLight, emittedLight, height, maximumLight
Methods inherited from interface org.spongepowered.api.util.RandomProvider
random
-
Method Details
-
worldType
WorldType worldType() -
border
WorldBorder border()Gets theWorldBorder
for thisRegion
.- Returns:
- The border.
-
setBorder
- Parameters:
worldBorder
- The border to set.- Returns:
- The
WorldBorder
that 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)
-