public interface WorldAccess extends EntityView, WorldView, ModifiableTestableWorld
getClosestEntity, getClosestEntity, getClosestEntityIncludingUngeneratedChunks, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getEntities, getEntities, getEntities, getEntitiesIncludingUngeneratedChunks, getEntitiesIncludingUngeneratedChunks, getNonSpectatingEntities, getPlayerByUuid, getPlayers, getPlayers, getTargets, isPlayerInRangecontainsFluid, 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_29556getBaseLightLevel, getBrightness, getLightingProvider, getLightLevel, isSkyVisiblecanPlace, doesNotCollide, doesNotCollide, doesNotCollide, doesNotCollide, getBlockCollisions, getCollisions, getWorldBorder, intersectsEntities, method_30030getBlockEntity, getBlockState, getFluidState, getHeight, getLuminance, getMaxLightLevel, method_29546, rayTrace, rayTrace, rayTraceBlocktestBlockStatebreakBlock, breakBlock, method_30093, removeBlock, setBlockState, setBlockState, spawnEntitydefault float getMoonSize()
default float getSkyAngle(float tickDelta)
@Environment(value=CLIENT) default int getMoonPhase()
TickScheduler<Block> getBlockTickScheduler()
TickScheduler<Fluid> getFluidTickScheduler()
World getWorld()
WorldProperties getLevelProperties()
LocalDifficulty getLocalDifficulty(BlockPos pos)
default Difficulty getDifficulty()
ChunkManager getChunkManager()
default boolean isChunkLoaded(int chunkX,
int chunkZ)
isChunkLoaded in interface WorldViewRandom getRandom()
void playSound(@Nullable PlayerEntity player, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch)
void addParticle(ParticleEffect parameters, double x, double y, double z, double velocityX, double velocityY, double velocityZ)
void syncWorldEvent(@Nullable PlayerEntity player, int eventId, BlockPos pos, int data)
default int getDimensionHeight()
default void syncWorldEvent(int eventId,
BlockPos pos,
int data)
default Stream<VoxelShape> getEntityCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)
getEntityCollisions in interface CollisionViewgetEntityCollisions in interface EntityViewdefault boolean intersectsEntities(@Nullable Entity entity, VoxelShape shape)
intersectsEntities in interface CollisionViewintersectsEntities in interface EntityViewdefault BlockPos getTopPosition(Heightmap.Type heightmap, BlockPos pos)
getTopPosition in interface TestableWorldgetTopPosition in interface WorldView