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 SummaryNested classes/interfaces inherited from interface org.spongepowered.api.world.volume.biome.BiomeVolumeBiomeVolume.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.BlockEntityVolumeBlockEntityVolume.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.BlockVolumeBlockVolume.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.EntityVolumeEntityVolume.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.GenerationVolumeGenerationVolume.MutableNested classes/interfaces inherited from interface org.spongepowered.api.world.volume.game.LocationBaseDataHolderLocationBaseDataHolder.MutableNested classes/interfaces inherited from interface org.spongepowered.api.util.RandomProviderRandomProvider.Source
- 
Method SummaryModifier 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.BiomeVolumebiome, biomeMethods inherited from interface org.spongepowered.api.world.volume.biome.BiomeVolume.ModifiablesetBiome, setBiomeMethods inherited from interface org.spongepowered.api.world.volume.biome.BiomeVolume.StreamablebiomeStreamMethods inherited from interface org.spongepowered.api.world.volume.block.entity.BlockEntityVolumeblockEntities, blockEntities, blockEntity, blockEntityMethods inherited from interface org.spongepowered.api.world.volume.block.entity.BlockEntityVolume.ModifiableaddBlockEntity, addBlockEntity, removeBlockEntity, removeBlockEntityMethods inherited from interface org.spongepowered.api.world.volume.block.entity.BlockEntityVolume.StreamableblockEntityStreamMethods inherited from interface org.spongepowered.api.world.volume.block.BlockVolumeblock, block, fluid, fluid, highestPositionAt, highestYAt, highestYAtMethods inherited from interface org.spongepowered.api.world.volume.block.BlockVolume.StreamableblockStateStreamMethods inherited from interface org.spongepowered.api.world.volume.game.ChunkVolumechunk, chunk, chunkAtBlock, chunkAtBlock, chunkLayout, hasChunk, hasChunk, hasChunkAtBlock, hasChunkAtBlock, isChunkLoaded, isChunkLoaded, isChunkLoadedAtBlock, isChunkLoadedAtBlockMethods inherited from interface org.spongepowered.api.world.volume.entity.EntityVolumeentities, entities, entities, entities, entities, entity, nearbyEntities, nearestPlayer, playersMethods inherited from interface org.spongepowered.api.world.volume.entity.EntityVolume.ModifiablecreateEntity, createEntity, createEntity, createEntity, createEntity, createEntity, createEntityNaturally, createEntityNaturally, createEntityNaturally, createEntityNaturally, spawnEntities, spawnEntityMethods inherited from interface org.spongepowered.api.world.volume.entity.EntityVolume.StreamableentityStreamMethods inherited from interface org.spongepowered.api.world.volume.game.EnvironmentalVolumeisSkylightMax, light, light, light, light, light, lightMethods inherited from interface org.spongepowered.api.world.volume.game.GenerationVolumehasBlockState, hasBlockState, hasBlockState, maximumHeightMethods inherited from interface org.spongepowered.api.world.volume.game.HeightAwareVolumeheight, heightMethods inherited from interface org.spongepowered.api.world.volume.game.LocationBaseDataHolderget, 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.MutablecopyFrom, 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.MutableGameVolumedestroyBlock, spawnEntityMethods inherited from interface org.spongepowered.api.world.volume.block.PhysicsAwareMutableBlockVolumesetBlock, setBlockMethods inherited from interface org.spongepowered.api.world.volume.game.PrimitiveGameVolumeemittedLight, emittedLight, height, maximumLightMethods inherited from interface org.spongepowered.api.util.RandomProviderrandomMethods inherited from interface org.spongepowered.api.world.volume.game.Regionborder, 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.UpdatableVolumescheduledBlockUpdates, scheduledFluidUpdates
- 
Method Details- 
engineEngine engine()Gets theEnginethat simulates this world.- Returns:
- The engine
 
- 
seedlong seed()Gets the seed of this world.- Returns:
- The seed
 
- 
difficultyDifficulty difficulty()Gets the currentDifficulty.- Returns:
- The difficulty for this world
 
- 
setBlockDescription copied from interface:PhysicsAwareMutableBlockVolumeSets the block at the given position in the world.- Specified by:
- setBlockin interface- MutableGameVolume
- Specified by:
- setBlockin interface- PhysicsAwareMutableBlockVolume<P extends WorldLike<P>>
- Parameters:
- position- The position
- state- The block
- flag- The various change flags controlling some interactions
- Returns:
- Whether the block change was successful
 
- 
setBlockDescription copied from interface:PhysicsAwareMutableBlockVolumeSets the block at the given position in the world.- Specified by:
- setBlockin interface- MutableGameVolume
- Specified by:
- setBlockin interface- PhysicsAwareMutableBlockVolume<P extends WorldLike<P>>
- Parameters:
- x- The X position
- y- The Y position
- z- The Z position
- state- The block
- flag- The various change flags controlling some interactions
- Returns:
- Whether the block change was successful
 
- 
removeBlock- Specified by:
- removeBlockin interface- BlockVolume.Modifiable<P extends WorldLike<P>>
- Specified by:
- removeBlockin interface- MutableGameVolume
 
- 
removeBlockboolean removeBlock(int x, int y, int z) - Specified by:
- removeBlockin interface- BlockVolume.Modifiable<P extends WorldLike<P>>
- Specified by:
- removeBlockin interface- MutableGameVolume
 
 
-