Package net.minecraft.world
Interface WorldAccess
- All Superinterfaces:
BiomeAccess.Storage,BlockRenderView,BlockView,class_5423,CollisionView,EntityView,LunarWorldView,ModifiableTestableWorld,ModifiableWorld,TestableWorld,WorldView
- All Known Subinterfaces:
ServerWorldAccess,StructureWorldAccess
- All Known Implementing Classes:
ChunkRegion,ClientWorld,ServerWorld,World
public interface WorldAccess extends class_5423, LunarWorldView
-
Method Summary
Modifier and Type Method Description voidaddParticle(ParticleEffect parameters, double x, double y, double z, double velocityX, double velocityY, double velocityZ)TickScheduler<Block>getBlockTickScheduler()ChunkManagergetChunkManager()default DifficultygetDifficulty()default intgetDimensionHeight()TickScheduler<Fluid>getFluidTickScheduler()WorldPropertiesgetLevelProperties()LocalDifficultygetLocalDifficulty(BlockPos pos)default longgetLunarTime()RandomgetRandom()default booleanisChunkLoaded(int chunkX, int chunkZ)voidplaySound(PlayerEntity player, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch)default voidsyncWorldEvent(int eventId, BlockPos pos, int data)voidsyncWorldEvent(PlayerEntity player, int eventId, BlockPos pos, int data)default voidupdateNeighbors(BlockPos pos, Block block)Methods inherited from interface net.minecraft.world.BlockRenderView
getBaseLightLevel, getBrightness, getLightingProvider, getLightLevel, isSkyVisibleMethods inherited from interface net.minecraft.world.BlockView
getBlockEntity, getBlockState, getDismountHeight, getDismountHeight, getFluidState, getHeight, getLuminance, getMaxLightLevel, method_29546, raycast, raycastBlockMethods inherited from interface net.minecraft.class_5423
getEntityCollisions, getRegistryManager, getTopPosition, intersectsEntities, method_31081Methods inherited from interface net.minecraft.world.CollisionView
canPlace, getBlockCollisions, getBlockCollisions, getCollisions, getEntityCollisions, getWorldBorder, intersectsEntities, intersectsEntities, isBlockSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmptyMethods inherited from interface net.minecraft.world.EntityView
getClosestEntity, getClosestEntity, getClosestEntityIncludingUngeneratedChunks, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getEntitiesByClass, getEntitiesIncludingUngeneratedChunks, getEntitiesIncludingUngeneratedChunks, getNonSpectatingEntities, getOtherEntities, getOtherEntities, getPlayerByUuid, getPlayers, getPlayers, getTargets, isPlayerInRangeMethods inherited from interface net.minecraft.world.LunarWorldView
getMoonPhase, getMoonSize, getSkyAngleMethods inherited from interface net.minecraft.world.ModifiableWorld
breakBlock, breakBlock, breakBlock, removeBlock, setBlockState, setBlockState, spawnEntityMethods inherited from interface net.minecraft.world.TestableWorld
testBlockStateMethods inherited from interface net.minecraft.world.WorldView
containsFluid, getAmbientDarkness, getBiome, getBiomeAccess, getBiomeForNoiseGen, getBrightness, getChunk, getChunk, getChunk, getChunk, getColor, getDimension, getExistingChunk, getGeneratorStoredBiome, getLightLevel, getLightLevel, getSeaLevel, getStrongRedstonePower, getTopY, isAir, isChunkLoaded, isClient, isRegionLoaded, isRegionLoaded, isSkyVisibleAllowingSea, isWater, method_29556
-
Method Details
-
getLunarTime
default long getLunarTime()- Specified by:
getLunarTimein interfaceLunarWorldView
-
getBlockTickScheduler
TickScheduler<Block> getBlockTickScheduler() -
getFluidTickScheduler
TickScheduler<Fluid> getFluidTickScheduler() -
getLevelProperties
WorldProperties getLevelProperties() -
getLocalDifficulty
-
getDifficulty
-
getChunkManager
ChunkManager getChunkManager() -
isChunkLoaded
default boolean isChunkLoaded(int chunkX, int chunkZ)- Specified by:
isChunkLoadedin interfaceWorldView
-
getRandom
Random getRandom() -
updateNeighbors
-
playSound
void playSound(@Nullable PlayerEntity player, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) -
addParticle
void addParticle(ParticleEffect parameters, double x, double y, double z, double velocityX, double velocityY, double velocityZ) -
syncWorldEvent
-
getDimensionHeight
default int getDimensionHeight() -
syncWorldEvent
-