Package net.minecraft.world
Interface IWorld
- All Superinterfaces:
BiomeManager.IBiomeReader
,IBiomeReader
,IBlockDisplayReader
,IBlockReader
,ICollisionReader
,IDayTimeReader
,IEntityReader
,IWorldGenerationBaseReader
,IWorldGenerationReader
,IWorldReader
,IWorldWriter
- All Known Subinterfaces:
ISeedReader
,IServerWorld
- All Known Implementing Classes:
ClientWorld
,ServerWorld
,World
,WorldGenRegion
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addParticle
(IParticleData p_195594_1_, double p_195594_2_, double p_195594_4_, double p_195594_6_, double p_195594_8_, double p_195594_10_, double p_195594_12_) default void
blockUpdated
(BlockPos p_230547_1_, Block p_230547_2_) default long
dayTime()
getCurrentDifficultyAt
(BlockPos p_175649_1_) default Difficulty
default int
default boolean
hasChunk
(int p_217354_1_, int p_217354_2_) default void
levelEvent
(int p_217379_1_, BlockPos p_217379_2_, int p_217379_3_) void
levelEvent
(PlayerEntity p_217378_1_, int p_217378_2_, BlockPos p_217378_3_, int p_217378_4_) void
playSound
(PlayerEntity p_184133_1_, BlockPos p_184133_2_, SoundEvent p_184133_3_, SoundCategory p_184133_4_, float p_184133_5_, float p_184133_6_) Methods inherited from interface net.minecraft.world.IBiomeReader
getBiomeName, getEntityCollisions, getHeightmapPos, isUnobstructed, registryAccess
Methods inherited from interface net.minecraft.world.IBlockDisplayReader
canSeeSky, getBrightness, getLightEngine, getRawBrightness, getShade
Methods inherited from interface net.minecraft.world.IBlockReader
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, getMaxBuildHeight, getMaxLightLevel
Methods inherited from interface net.minecraft.world.ICollisionReader
getBlockCollisions, getBlockCollisions, getCollisions, getEntityCollisions, getWorldBorder, isUnobstructed, isUnobstructed, isUnobstructed, noBlockCollision, noCollision, noCollision, noCollision, noCollision
Methods inherited from interface net.minecraft.world.IDayTimeReader
getMoonBrightness, getMoonPhase, getTimeOfDay
Methods inherited from interface net.minecraft.world.IEntityReader
getEntities, getEntities, getEntitiesOfClass, getEntitiesOfClass, getLoadedEntitiesOfClass, getLoadedEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestLoadedEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer, players
Methods inherited from interface net.minecraft.world.gen.IWorldGenerationBaseReader
isStateAtPosition
Methods inherited from interface net.minecraft.world.IWorldReader
canSeeSkyFromBelowWater, containsAnyLiquid, dimensionType, getBiome, getBiomeManager, getBlockStatesIfLoaded, getBlockTint, getBrightness, getChunk, getChunk, getChunk, getChunk, getChunkForCollisions, getDirectSignal, getHeight, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getNoiseBiome, getSeaLevel, getSkyDarken, getUncachedNoiseBiome, hasChunkAt, hasChunksAt, hasChunksAt, isAreaLoaded, isClientSide, isEmptyBlock, isWaterAt
Methods inherited from interface net.minecraft.world.IWorldWriter
addFreshEntity, destroyBlock, destroyBlock, destroyBlock, removeBlock, setBlock, setBlock
-
Method Details
-
dayTime
default long dayTime()- Specified by:
dayTime
in interfaceIDayTimeReader
-
getBlockTicks
-
getLiquidTicks
-
getLevelData
IWorldInfo getLevelData() -
getCurrentDifficultyAt
-
getDifficulty
-
getChunkSource
AbstractChunkProvider getChunkSource() -
hasChunk
default boolean hasChunk(int p_217354_1_, int p_217354_2_) - Specified by:
hasChunk
in interfaceIWorldReader
-
getRandom
Random getRandom() -
blockUpdated
-
playSound
void playSound(@Nullable PlayerEntity p_184133_1_, BlockPos p_184133_2_, SoundEvent p_184133_3_, SoundCategory p_184133_4_, float p_184133_5_, float p_184133_6_) -
addParticle
void addParticle(IParticleData p_195594_1_, double p_195594_2_, double p_195594_4_, double p_195594_6_, double p_195594_8_, double p_195594_10_, double p_195594_12_) -
levelEvent
void levelEvent(@Nullable PlayerEntity p_217378_1_, int p_217378_2_, BlockPos p_217378_3_, int p_217378_4_) -
getHeight
default int getHeight() -
levelEvent
-