Package org.spongepowered.api.world
Interface WorldLike<P extends WorldLike<P>>
- All Superinterfaces:
BiomeVolume,BiomeVolume.Modifiable<P>,BiomeVolume.Streamable<P>,BlockEntityVolume,BlockEntityVolume.Modifiable<P>,BlockEntityVolume.Streamable<P>,BlockVolume,BlockVolume.Modifiable<P>,BlockVolume.Streamable<P>,ChunkVolume,EntityVolume,EntityVolume.Modifiable<P>,EntityVolume.Streamable<P>,EnvironmentalVolume,GenerationVolume,GenerationVolume.Mutable,HeightAwareVolume,LocationBaseDataHolder,LocationBaseDataHolder.Mutable,MutableGameVolume,MutableVolume,PhysicsAwareMutableBlockVolume<P>,PrimitiveGameVolume,RandomProvider,Region<P>,UpdatableVolume,Volume
- All Known Subinterfaces:
ClientWorld,GenerationRegion,ServerWorld,World<W,L>
public interface WorldLike<P extends WorldLike<P>>
extends Region<P>, BiomeVolume.Modifiable<P>, BlockVolume.Modifiable<P>, EntityVolume.Modifiable<P>, BlockEntityVolume.Modifiable<P>, GenerationVolume.Mutable, LocationBaseDataHolder.Mutable, UpdatableVolume, RandomProvider, PhysicsAwareMutableBlockVolume<P>, MutableGameVolume
-
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.entity.EntityVolume
EntityVolume.EntityVolumeFactory, EntityVolume.Immutable, EntityVolume.Modifiable<M extends EntityVolume.Modifiable<M>>, EntityVolume.Mutable, EntityVolume.Streamable<E extends EntityVolume.Streamable<E>>, EntityVolume.Unmodifiable<U extends EntityVolume.Unmodifiable<U>>Nested classes/interfaces inherited from interface org.spongepowered.api.world.volume.game.GenerationVolume
GenerationVolume.MutableNested 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 TypeMethodDescriptionGets the currentDifficulty.engine()Gets theEnginethat simulates this world.booleanremoveBlock(int x, int y, int z) default booleanremoveBlock(Vector3i position) longseed()Gets the seed of this world.booleansetBlock(int x, int y, int z, BlockState state, BlockChangeFlag flag) Sets the block at the given position in the world.default booleansetBlock(Vector3i position, BlockState state, BlockChangeFlag flag) Sets the block at the given position in the world.Methods inherited from interface org.spongepowered.api.world.volume.biome.BiomeVolume
biome, biomeMethods inherited from interface org.spongepowered.api.world.volume.biome.BiomeVolume.Modifiable
setBiome, setBiomeMethods 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.Modifiable
addBlockEntity, addBlockEntity, removeBlockEntity, removeBlockEntityMethods 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, blockPalette, 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.entity.EntityVolume
entities, entities, entities, entities, entities, entity, nearbyEntities, nearestPlayer, playersMethods inherited from interface org.spongepowered.api.world.volume.entity.EntityVolume.Modifiable
createEntity, createEntity, createEntity, createEntity, createEntity, createEntity, createEntityNaturally, createEntityNaturally, createEntityNaturally, createEntityNaturally, spawnEntities, spawnEntityMethods inherited from interface org.spongepowered.api.world.volume.entity.EntityVolume.Streamable
entityStreamMethods 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.GenerationVolume
hasBlockState, hasBlockState, hasBlockState, maximumHeightMethods 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.LocationBaseDataHolder.Mutable
copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, offer, offer, offer, offer, offer, offer, remove, remove, remove, remove, setRawData, setRawData, transform, transform, transform, transform, undo, undo, validateRawData, validateRawDataMethods inherited from interface org.spongepowered.api.world.volume.game.MutableGameVolume
destroyBlock, spawnEntityMethods inherited from interface org.spongepowered.api.world.volume.block.PhysicsAwareMutableBlockVolume
setBlock, setBlockMethods inherited from interface org.spongepowered.api.world.volume.game.PrimitiveGameVolume
emittedLight, emittedLight, height, maximumLightMethods inherited from interface org.spongepowered.api.util.RandomProvider
randomMethods inherited from interface org.spongepowered.api.world.volume.game.Region
border, canSeeSky, canSeeSky, containsAnyLiquids, hasLiquid, hasLiquid, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isBlockLoaded, isBlockLoaded, isBlockLoaded, isBlockLoaded, isCollisionBoxesEmpty, isInBorder, seaLevel, setBorder, skylightSubtracted, worldTypeMethods inherited from interface org.spongepowered.api.world.volume.game.UpdatableVolume
scheduledBlockUpdates, scheduledFluidUpdates
-
Method Details
-
engine
Engine engine()Gets theEnginethat simulates this world.- Returns:
- The engine
-
seed
long seed()Gets the seed of this world.- Returns:
- The seed
-
difficulty
Difficulty difficulty()Gets the currentDifficulty.- Returns:
- The difficulty for this world
-
setBlock
Description copied from interface:PhysicsAwareMutableBlockVolumeSets the block at the given position in the world.- Specified by:
setBlockin interfaceMutableGameVolume- Specified by:
setBlockin interfacePhysicsAwareMutableBlockVolume<P extends WorldLike<P>>- Parameters:
position- The positionstate- The blockflag- The various change flags controlling some interactions- Returns:
- Whether the block change was successful
-
setBlock
Description copied from interface:PhysicsAwareMutableBlockVolumeSets the block at the given position in the world.- Specified by:
setBlockin interfaceMutableGameVolume- Specified by:
setBlockin interfacePhysicsAwareMutableBlockVolume<P extends WorldLike<P>>- Parameters:
x- The X positiony- The Y positionz- The Z positionstate- The blockflag- The various change flags controlling some interactions- Returns:
- Whether the block change was successful
-
removeBlock
- Specified by:
removeBlockin interfaceBlockVolume.Modifiable<P extends WorldLike<P>>- Specified by:
removeBlockin interfaceMutableGameVolume
-
removeBlock
boolean removeBlock(int x, int y, int z) - Specified by:
removeBlockin interfaceBlockVolume.Modifiable<P extends WorldLike<P>>- Specified by:
removeBlockin interfaceMutableGameVolume
-