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 BiomeVolume
BiomeVolume.Immutable, BiomeVolume.Modifiable<M>, BiomeVolume.Mutable, BiomeVolume.Streamable<B>, BiomeVolume.Unmodifiable<U>Nested classes/interfaces inherited from interface BlockEntityVolume
BlockEntityVolume.Modifiable<M>, BlockEntityVolume.Mutable, BlockEntityVolume.Streamable<T>, BlockEntityVolume.Unmodifiable<U>Nested classes/interfaces inherited from interface BlockVolume
BlockVolume.Immutable, BlockVolume.Modifiable<M>, BlockVolume.Mutable, BlockVolume.Streamable<B>, BlockVolume.Unmodifiable<U>Nested classes/interfaces inherited from interface EntityVolume
EntityVolume.EntityVolumeFactory, EntityVolume.Immutable, EntityVolume.Modifiable<M>, EntityVolume.Mutable, EntityVolume.Streamable<E>, EntityVolume.Unmodifiable<U>Nested classes/interfaces inherited from interface GenerationVolume
GenerationVolume.MutableNested classes/interfaces inherited from interface LocationBaseDataHolder
LocationBaseDataHolder.MutableNested classes/interfaces inherited from interface 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 BiomeVolume
biome, biomeMethods inherited from interface BiomeVolume.Modifiable
setBiome, setBiomeMethods inherited from interface BiomeVolume.Streamable
biomeStreamMethods inherited from interface BlockEntityVolume
blockEntities, blockEntities, blockEntity, blockEntityMethods inherited from interface BlockEntityVolume.Modifiable
addBlockEntity, addBlockEntity, removeBlockEntity, removeBlockEntityMethods inherited from interface BlockEntityVolume.Streamable
blockEntityStreamMethods inherited from interface BlockVolume
block, block, blockPalette, fluid, fluid, highestPositionAt, highestYAt, highestYAtMethods inherited from interface BlockVolume.Streamable
blockStateStreamMethods inherited from interface ChunkVolume
chunk, chunk, chunkAtBlock, chunkAtBlock, chunkLayout, hasChunk, hasChunk, hasChunkAtBlock, hasChunkAtBlock, isChunkLoaded, isChunkLoaded, isChunkLoadedAtBlock, isChunkLoadedAtBlockMethods inherited from interface EntityVolume
entities, entities, entities, entities, entities, entity, nearbyEntities, nearestPlayer, playersMethods inherited from interface EntityVolume.Modifiable
createEntity, createEntity, createEntity, createEntity, createEntity, createEntity, createEntityNaturally, createEntityNaturally, createEntityNaturally, createEntityNaturally, filterEntities, filterEntities, filterEntities, filterEntities, filterEntities, spawnEntities, spawnEntityMethods inherited from interface EntityVolume.Streamable
entityStreamMethods inherited from interface EnvironmentalVolume
isSkylightMax, light, light, light, light, light, lightMethods inherited from interface GenerationVolume
hasBlockState, hasBlockState, hasBlockState, maximumHeightMethods inherited from interface HeightAwareVolume
height, heightMethods inherited from interface 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 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 MutableGameVolume
destroyBlock, spawnEntityMethods inherited from interface PhysicsAwareMutableBlockVolume
setBlock, setBlockMethods inherited from interface PrimitiveGameVolume
emittedLight, emittedLight, height, maximumLightMethods inherited from interface RandomProvider
randomMethods inherited from interface 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 UpdatableVolume
scheduledBlockUpdates, scheduledFluidUpdates
-
Method Details
-
engine
-
seed
long seed()Gets the seed of this world.- Returns:
- The seed
-
difficulty
-
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
-