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.Mutable
Nested classes/interfaces inherited from interface org.spongepowered.api.world.volume.game.LocationBaseDataHolder
LocationBaseDataHolder.Mutable
-
Method Summary
Modifier and TypeMethodDescriptionGets the currentDifficulty
.engine()
Gets theEngine
that simulates this world.boolean
removeBlock
(int x, int y, int z) default boolean
removeBlock
(Vector3i position) long
seed()
Gets the seed of this world.boolean
setBlock
(int x, int y, int z, BlockState state, BlockChangeFlag flag) Sets the block at the given position in the world.default boolean
setBlock
(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, biome
Methods inherited from interface org.spongepowered.api.world.volume.biome.BiomeVolume.Modifiable
setBiome, setBiome
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.Modifiable
addBlockEntity, addBlockEntity, removeBlockEntity, removeBlockEntity
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.entity.EntityVolume
entities, entities, entities, entities, entities, entity, nearbyEntities, nearestPlayer, players
Methods inherited from interface org.spongepowered.api.world.volume.entity.EntityVolume.Modifiable
createEntity, createEntity, createEntity, createEntity, createEntity, createEntity, createEntityNaturally, createEntityNaturally, createEntityNaturally, createEntityNaturally, spawnEntities, spawnEntity
Methods inherited from interface org.spongepowered.api.world.volume.entity.EntityVolume.Streamable
entityStream
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.GenerationVolume
hasBlockState, hasBlockState, hasBlockState, maximumHeight
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.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, validateRawData
Methods inherited from interface org.spongepowered.api.world.volume.game.MutableGameVolume
destroyBlock, spawnEntity
Methods inherited from interface org.spongepowered.api.world.volume.block.PhysicsAwareMutableBlockVolume
setBlock, setBlock
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
Methods 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, worldType
Methods inherited from interface org.spongepowered.api.world.volume.game.UpdatableVolume
scheduledBlockUpdates, scheduledFluidUpdates
-
Method Details
-
engine
Engine engine()Gets theEngine
that 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:PhysicsAwareMutableBlockVolume
Sets the block at the given position in the world.- Specified by:
setBlock
in interfaceMutableGameVolume
- Specified by:
setBlock
in 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:PhysicsAwareMutableBlockVolume
Sets the block at the given position in the world.- Specified by:
setBlock
in interfaceMutableGameVolume
- Specified by:
setBlock
in 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:
removeBlock
in interfaceBlockVolume.Modifiable<P extends WorldLike<P>>
- Specified by:
removeBlock
in interfaceMutableGameVolume
-
removeBlock
boolean removeBlock(int x, int y, int z) - Specified by:
removeBlock
in interfaceBlockVolume.Modifiable<P extends WorldLike<P>>
- Specified by:
removeBlock
in interfaceMutableGameVolume
-