Package net.minecraft.world
Interface WorldAccess
- All Superinterfaces:
BiomeAccess.Storage,BlockRenderView,BlockView,CollisionView,EntityView,ModifiableTestableWorld,ModifiableWorld,TestableWorld,WorldView
- All Known Subinterfaces:
ServerWorldAccess
- All Known Implementing Classes:
ChunkRegion,ClientWorld,ServerWorld,World
public interface WorldAccess extends EntityView, WorldView, ModifiableTestableWorld
-
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()default Stream<VoxelShape>getEntityCollisions(Entity entity, Box box, Predicate<Entity> predicate)TickScheduler<Fluid>getFluidTickScheduler()WorldPropertiesgetLevelProperties()LocalDifficultygetLocalDifficulty(BlockPos pos)default intgetMoonPhase()default floatgetMoonSize()RandomgetRandom()default floatgetSkyAngle(float tickDelta)default BlockPosgetTopPosition(Heightmap.Type heightmap, BlockPos pos)WorldgetWorld()default booleanintersectsEntities(Entity entity, VoxelShape shape)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, getFluidState, getHeight, getLuminance, getMaxLightLevel, method_29546, rayTrace, rayTraceBlockMethods inherited from interface net.minecraft.world.CollisionView
canPlace, doesNotCollide, doesNotCollide, doesNotCollide, doesNotCollide, getBlockCollisions, getCollisions, getWorldBorder, intersectsEntities, method_30030Methods inherited from interface net.minecraft.world.EntityView
getClosestEntity, getClosestEntity, getClosestEntityIncludingUngeneratedChunks, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getEntities, getEntities, getEntities, getEntitiesIncludingUngeneratedChunks, getEntitiesIncludingUngeneratedChunks, getNonSpectatingEntities, getPlayerByUuid, getPlayers, getPlayers, getTargets, isPlayerInRangeMethods inherited from interface net.minecraft.world.ModifiableWorld
breakBlock, breakBlock, method_30093, removeBlock, setBlockState, setBlockState, spawnEntityMethods 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
-
getMoonSize
default float getMoonSize() -
getSkyAngle
default float getSkyAngle(float tickDelta) -
getMoonPhase
@Environment(CLIENT) default int getMoonPhase() -
getBlockTickScheduler
TickScheduler<Block> getBlockTickScheduler() -
getFluidTickScheduler
TickScheduler<Fluid> getFluidTickScheduler() -
getWorld
World getWorld() -
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
-
getEntityCollisions
default Stream<VoxelShape> getEntityCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)- Specified by:
getEntityCollisionsin interfaceCollisionView- Specified by:
getEntityCollisionsin interfaceEntityView
-
intersectsEntities
- Specified by:
intersectsEntitiesin interfaceCollisionView- Specified by:
intersectsEntitiesin interfaceEntityView
-
getTopPosition
- Specified by:
getTopPositionin interfaceTestableWorld- Specified by:
getTopPositionin interfaceWorldView
-