Class World
- All Implemented Interfaces:
AutoCloseable,BiomeAccess.Storage,BlockRenderView,BlockView,CollisionView,EntityView,HeightLimitView,LunarWorldView,ModifiableTestableWorld,ModifiableWorld,RedstoneView,RegistryWorldView,TestableWorld,ScheduledTickView,WorldAccess,WorldView
- Direct Known Subclasses:
ClientWorld,ServerWorld
- Mappings:
Namespace Name named net/minecraft/world/Worldintermediary net/minecraft/class_1937official dun
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.world.BlockView
BlockView.CollisionVisitor -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final BiomeAccessprotected final List<BlockEntityTickInvoker> static final com.mojang.serialization.Codec<RegistryKey<World>> private final DamageSourcesprivate final booleanprivate final RegistryEntry<DimensionType> static final RegistryKey<World> private static final Pool<BlockParticleEffect> static final intstatic final intprivate final class_12205static final intprivate final booleanprivate booleanprotected floatprotected floatprotected intprotected final intstatic final intstatic final intstatic final intprotected final ChainRestrictedNeighborUpdaterstatic final RegistryKey<World> static final RegistryKey<World> private final PalettesFactoryprivate final List<BlockEntityTickInvoker> protected final MutableWorldPropertiesprotected floatfinal Randomprivate final RegistryKey<World> private final DynamicRegistryManagerprivate final Threadprivate final RandomDeprecated.protected floatprivate longFields inherited from interface net.minecraft.world.RedstoneView
DIRECTIONS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWorld(MutableWorldProperties properties, RegistryKey<World> registryRef, DynamicRegistryManager registryManager, RegistryEntry<DimensionType> registryEntry, boolean isClient, boolean debugWorld, long seed, int maxChainedNeighborUpdates) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBlockBreakParticles(BlockPos pos, BlockState state) voidaddBlockEntity(BlockEntity blockEntity) voidaddDetailsToCrashReport(CrashReport report) voidaddFireworkParticle(double x, double y, double z, double velocityX, double velocityY, double velocityZ, List<FireworkExplosionComponent> explosions) voidaddImportantParticleClient(ParticleEffect parameters, boolean force, double x, double y, double z, double velocityX, double velocityY, double velocityZ) Adds an important particle to the client's world renderer.voidaddImportantParticleClient(ParticleEffect parameters, double x, double y, double z, double velocityX, double velocityY, double velocityZ) Adds an important particle to the client's world renderer.voidaddParticleClient(ParticleEffect parameters, boolean force, boolean canSpawnOnMinimal, double x, double y, double z, double velocityX, double velocityY, double velocityZ) Adds a particle to the client's world renderer.voidaddParticleClient(ParticleEffect parameters, double x, double y, double z, double velocityX, double velocityY, double velocityZ) Adds a particle to the client's world renderer.voidaddSyncedBlockEvent(BlockPos pos, Block block, int type, int data) abstract StringasString()booleanbreakBlock(BlockPos pos, boolean drop, @Nullable Entity breakingEntity, int maxUpdateDepth) Removes the block and replaces it with the fluid occupying the block (such as water inside kelp), or air if it does not exist.voidbooleancanEntityModifyAt(Entity entity, BlockPos pos) Returns whetherentitycan modify blocks atpos.private booleanvoidclose()<T extends Entity>
voidcollectEntitiesByType(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate, List<? super T> result) <T extends Entity>
voidcollectEntitiesByType(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate, List<? super T> result, int limit) Collects entities of the given type inbox, up tolimit.voidcreateExplosion(@Nullable Entity entity, double x, double y, double z, float power, boolean createFire, World.ExplosionSourceType explosionSourceType) Creates an explosion.voidcreateExplosion(@Nullable Entity entity, double x, double y, double z, float power, World.ExplosionSourceType explosionSourceType) Creates an explosion without creating fire.voidcreateExplosion(@Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, World.ExplosionSourceType explosionSourceType) abstract voidcreateExplosion(@Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, World.ExplosionSourceType explosionSourceType, ParticleEffect smallParticle, ParticleEffect largeParticle, Pool<BlockParticleEffect> blockParticles, RegistryEntry<SoundEvent> soundEvent) Creates an explosion.voidcreateExplosion(@Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, Vec3d pos, float power, boolean createFire, World.ExplosionSourceType explosionSourceType) Creates an explosion.ensureWithinBorder(WorldProperties.SpawnPoint spawnPoint) intintgetBlockColor(BlockPos pos) getBlockEntity(BlockPos pos) Returns the block entity atpos, ornullif there is none.getBlockState(BlockPos pos) Returns the block state atpos.abstract BrewingRecipeRegistrygetChunk(int int2, int int3) Returns the chunk with positionchunkXandchunkZ.getChunk(int chunkX, int chunkZ, ChunkStatus leastStatus, boolean create) getChunkAsView(int chunkX, int chunkZ) getCrammedEntities(Entity entity, Box box) abstract Collection<EnderDragonPart> getEntitiesByType(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate) getEntityAnyDimension(UUID uuid) getEntityById(int id) Returns the entity using the entity ID, ornullif none was found.protected abstract EntityLookup<Entity> getFluidState(BlockPos pos) Returns the fluid state atpos.abstract FuelRegistryComputes a list of entities within some box, excluding the given entity, that satisfy the given predicate.getPlayerAnyDimension(UUID uuid) getPrecipitation(BlockPos pos) floatgetRainGradient(float tickProgress) getRandomPosInChunk(int x, int y, int z, int int2) abstract RecipeManagerabstract ScoreboardfloatgetSkyAngleRadians(float tickProgress) abstract WorldProperties.SpawnPointfloatgetThunderGradient(float tickProgress) abstract TickManagerlonglongReturns the time of day.intgetTopY(Heightmap.Type heightmap, int x, int z) Returns the Y coordinate of the topmost block at the coordinatesxandzusingheightmap.getWorldChunk(BlockPos pos) Returns the chunk that containspos.<T extends Entity>
booleanhasEntities(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate) Checks if entities of the given type exist inbox.booleanReturns whether it can rain atpos.protected voidbooleanisClient()Checks if this world view is on the logical client.booleanisDay()final booleanChecks if this world is a debug world.booleanisDirectionSolid(BlockPos pos, Entity entity, Direction direction) booleanisInBuildLimit(BlockPos pos) Returns whether the position is inside the build limit.private static booleanisInvalidVertically(int y) booleanisNight()booleanbooleanisPosLoaded(BlockPos pos) booleanReturns whether it is raining.booleanbooleanbooleanisTopSolid(BlockPos pos, Entity entity) static booleanReturns whether the position is valid.private static booleanvoidloadBlockEntity(BlockEntity blockEntity) voidvoidonBlockStateChanged(BlockPos pos, BlockState oldState, BlockState newState) voidplaySound(@Nullable Entity source, double x, double y, double z, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch) abstract voidplaySound(@Nullable Entity source, double x, double y, double z, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) Plays a sound caused by a source.voidplaySound(@Nullable Entity source, double x, double y, double z, SoundEvent sound, SoundCategory category) voidplaySound(@Nullable Entity source, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch) Plays a sound caused by a source.voidplaySound(@Nullable Entity source, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch, long seed) Plays a sound caused by a source.voidplaySound(@Nullable Entity source, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) voidplaySoundAtBlockCenterClient(BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch, boolean useDistance) voidplaySoundClient(double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch, boolean useDistance) voidplaySoundClient(SoundEvent sound, SoundCategory category, float volume, float pitch) abstract voidplaySoundFromEntity(@Nullable Entity source, Entity entity, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) Plays a sound caused by a source at the provided entity's position.voidplaySoundFromEntity(@Nullable Entity source, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch) Plays a sound caused by a source at the provided entity's position.voidplaySoundFromEntityClient(Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch) booleanremoveBlock(BlockPos pos, boolean move) Removes the block and replaces it with the fluid occupying the block (such as water inside kelp), or air if it does not exist.voidvoidreplaceWithStateForNeighborUpdate(Direction direction, BlockPos pos, BlockPos neighborPos, BlockState neighborState, int flags, int maxUpdateDepth) voidscheduleBlockRerenderIfNeeded(BlockPos pos, BlockState old, BlockState updated) voidsendEntityDamage(Entity entity, DamageSource damageSource) voidsendEntityStatus(Entity entity, byte status) Sends the entity status to nearby players.voidsendPacket(Packet<?> packet) abstract voidsetBlockBreakingInfo(int entityId, BlockPos pos, int progress) booleansetBlockState(BlockPos pos, BlockState state) booleansetBlockState(BlockPos pos, BlockState state, int flags) Updates the block state at a position, calling appropriate callbacks.booleansetBlockState(BlockPos pos, BlockState state, int flags, int maxUpdateDepth) Updates the block state at a position, calling appropriate callbacks.voidsetLightningTicksLeft(int lightningTicksLeft) voidsetMobSpawnOptions(boolean spawnMonsters) Sets whether monsters or animals can spawn.voidsetRainGradient(float rainGradient) abstract voidsetSpawnPoint(WorldProperties.SpawnPoint spawnPoint) voidsetThunderGradient(float thunderGradient) booleanbooleanshouldTickBlocksInChunk(long chunkPos) Returns whether the blocks in the specified chunk should get ticked.booleanshouldUpdatePostDeath(Entity entity) voidsyncGlobalEvent(int eventId, BlockPos pos, int data) booleantestBlockState(BlockPos pos, Predicate<BlockState> state) booleantestFluidState(BlockPos pos, Predicate<FluidState> state) void<T extends Entity>
voidtickEntity(Consumer<T> tickConsumer, T entity) voidupdateComparators(BlockPos pos, Block block) abstract voidupdateListeners(BlockPos pos, BlockState oldState, BlockState newState, int flags) voidupdateNeighbor(BlockState state, BlockPos pos, Block sourceBlock, @Nullable WireOrientation orientation, boolean notify) voidupdateNeighbor(BlockPos pos, Block sourceBlock, @Nullable WireOrientation orientation) Triggers a neighbor update originating fromsourcePosatpos.voidupdateNeighborsAlways(BlockPos pos, Block sourceBlock, @Nullable WireOrientation orientation) Emits a neighbor update to all 6 neighboring blocks ofpos.voidupdateNeighborsExcept(BlockPos pos, Block sourceBlock, Direction direction, @Nullable WireOrientation orientation) Emits a neighbor update to neighboring blocks ofpos, except for the one indirectiondirection.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.BlockRenderView
getBaseLightLevel, getBrightness, getLightLevel, isSkyVisibleMethods inherited from interface net.minecraft.world.BlockView
getDismountHeight, getDismountHeight, getLuminance, getStatesInBox, raycast, raycast, raycastBlockMethods inherited from interface net.minecraft.world.CollisionView
canCollide, canPlace, doesNotIntersectEntities, doesNotIntersectEntities, findClosestCollision, findSupportingBlockPos, getBlockCollisions, getBlockOrFluidCollisions, getCollisions, getCollisions, getCollisionsIncludingWorldBorder, getEntityCollisions, getWorldBorder, isBlockSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmptyMethods inherited from interface net.minecraft.world.EntityView
getClosestPlayer, getClosestPlayer, getClosestPlayer, getEntitiesByClass, getNonSpectatingEntities, getOtherEntities, getPlayerByUuid, getPlayers, isPlayerInRangeMethods inherited from interface net.minecraft.world.HeightLimitView
countVerticalSections, getBottomSectionCoord, getSectionIndex, getTopSectionCoord, getTopYInclusive, isInHeightLimit, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoordMethods inherited from interface net.minecraft.world.LunarWorldView
getMoonPhase, getMoonSize, getSkyAngleMethods inherited from interface net.minecraft.world.ModifiableWorld
breakBlock, breakBlock, spawnEntityMethods inherited from interface net.minecraft.world.RedstoneView
getEmittedRedstonePower, getEmittedRedstonePower, getReceivedRedstonePower, getReceivedStrongRedstonePower, getStrongRedstonePower, isEmittingRedstonePower, isReceivingRedstonePowerMethods inherited from interface net.minecraft.world.RegistryWorldView
doesNotIntersectEntities, getBlockEntity, getEntityCollisions, getTopPositionMethods inherited from interface net.minecraft.world.tick.ScheduledTickView
getBlockTickScheduler, getFluidTickScheduler, scheduleBlockTick, scheduleBlockTick, scheduleFluidTick, scheduleFluidTickMethods inherited from interface net.minecraft.world.WorldAccess
createOrderedTick, createOrderedTick, emitGameEvent, emitGameEvent, emitGameEvent, emitGameEvent, emitGameEvent, getChunkManager, getDifficulty, getLunarTime, getTime, isChunkLoaded, playSound, syncWorldEvent, syncWorldEvent, updateNeighborsMethods inherited from interface net.minecraft.world.WorldView
containsFluid, createCommandRegistryWrapper, getBiome, getBiomeForNoiseGen, getBottomY, getBrightness, getChunk, getChunk, getColor, getEnabledFeatures, getGeneratorStoredBiome, getHeight, getLightLevel, getLightLevel, getPhototaxisFavor, getSeaLevel, getStatesInBoxIfLoaded, getTopY, isAir, isChunkLoaded, isPosLoaded, isRegionLoaded, isRegionLoaded, isRegionLoaded, isSkyVisibleAllowingSea, isWater
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/World;CODEC:Lcom/mojang/serialization/Codec;intermediary field_25178Lnet/minecraft/class_1937;field_25178:Lcom/mojang/serialization/Codec;official gLdun;g:Lcom/mojang/serialization/Codec;
-
OVERWORLD
- Mappings:
Namespace Name Mixin selector named OVERWORLDLnet/minecraft/world/World;OVERWORLD:Lnet/minecraft/registry/RegistryKey;intermediary field_25179Lnet/minecraft/class_1937;field_25179:Lnet/minecraft/class_5321;official hLdun;h:Lamx;
-
NETHER
- Mappings:
Namespace Name Mixin selector named NETHERLnet/minecraft/world/World;NETHER:Lnet/minecraft/registry/RegistryKey;intermediary field_25180Lnet/minecraft/class_1937;field_25180:Lnet/minecraft/class_5321;official iLdun;i:Lamx;
-
END
- Mappings:
Namespace Name Mixin selector named ENDLnet/minecraft/world/World;END:Lnet/minecraft/registry/RegistryKey;intermediary field_25181Lnet/minecraft/class_1937;field_25181:Lnet/minecraft/class_5321;official jLdun;j:Lamx;
-
HORIZONTAL_LIMIT
public static final int HORIZONTAL_LIMIT- See Also:
- Mappings:
Namespace Name Mixin selector named HORIZONTAL_LIMITLnet/minecraft/world/World;HORIZONTAL_LIMIT:Iintermediary field_30965Lnet/minecraft/class_1937;field_30965:Iofficial kLdun;k:I
-
MAX_UPDATE_DEPTH
public static final int MAX_UPDATE_DEPTH- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_UPDATE_DEPTHLnet/minecraft/world/World;MAX_UPDATE_DEPTH:Iintermediary field_30966Lnet/minecraft/class_1937;field_30966:Iofficial lLdun;l:I
-
field_30967
public static final int field_30967- See Also:
- Mappings:
Namespace Name Mixin selector named field_30967Lnet/minecraft/world/World;field_30967:Iintermediary field_30967Lnet/minecraft/class_1937;field_30967:Iofficial mLdun;m:I
-
field_30968
public static final int field_30968- See Also:
- Mappings:
Namespace Name Mixin selector named field_30968Lnet/minecraft/world/World;field_30968:Iintermediary field_30968Lnet/minecraft/class_1937;field_30968:Iofficial nLdun;n:I
-
MAX_Y
public static final int MAX_Y- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_YLnet/minecraft/world/World;MAX_Y:Iintermediary field_30970Lnet/minecraft/class_1937;field_30970:Iofficial oLdun;o:I
-
MIN_Y
public static final int MIN_Y- See Also:
- Mappings:
Namespace Name Mixin selector named MIN_YLnet/minecraft/world/World;MIN_Y:Iintermediary field_30971Lnet/minecraft/class_1937;field_30971:Iofficial pLdun;p:I
-
EXPLOSION_BLOCK_PARTICLES
- Mappings:
Namespace Name Mixin selector named EXPLOSION_BLOCK_PARTICLESLnet/minecraft/world/World;EXPLOSION_BLOCK_PARTICLES:Lnet/minecraft/util/collection/Pool;intermediary field_61989Lnet/minecraft/class_1937;field_61989:Lnet/minecraft/class_6012;official aLdun;a:Lcbh;
-
blockEntityTickers
- Mappings:
Namespace Name Mixin selector named blockEntityTickersLnet/minecraft/world/World;blockEntityTickers:Ljava/util/List;intermediary field_27082Lnet/minecraft/class_1937;field_27082:Ljava/util/List;official qLdun;q:Ljava/util/List;
-
neighborUpdater
- Mappings:
Namespace Name Mixin selector named neighborUpdaterLnet/minecraft/world/World;neighborUpdater:Lnet/minecraft/world/block/ChainRestrictedNeighborUpdater;intermediary field_38226Lnet/minecraft/class_1937;field_38226:Lnet/minecraft/class_7159;official rLdun;r:Lfjx;
-
pendingBlockEntityTickers
- Mappings:
Namespace Name Mixin selector named pendingBlockEntityTickersLnet/minecraft/world/World;pendingBlockEntityTickers:Ljava/util/List;intermediary field_27081Lnet/minecraft/class_1937;field_27081:Ljava/util/List;official bLdun;b:Ljava/util/List;
-
iteratingTickingBlockEntities
private boolean iteratingTickingBlockEntities- Mappings:
Namespace Name Mixin selector named iteratingTickingBlockEntitiesLnet/minecraft/world/World;iteratingTickingBlockEntities:Zintermediary field_9249Lnet/minecraft/class_1937;field_9249:Zofficial cLdun;c:Z
-
thread
- Mappings:
Namespace Name Mixin selector named threadLnet/minecraft/world/World;thread:Ljava/lang/Thread;intermediary field_17086Lnet/minecraft/class_1937;field_17086:Ljava/lang/Thread;official dLdun;d:Ljava/lang/Thread;
-
debugWorld
private final boolean debugWorld- Mappings:
Namespace Name Mixin selector named debugWorldLnet/minecraft/world/World;debugWorld:Zintermediary field_24496Lnet/minecraft/class_1937;field_24496:Zofficial eLdun;e:Z
-
ambientDarkness
private int ambientDarkness- Mappings:
Namespace Name Mixin selector named ambientDarknessLnet/minecraft/world/World;ambientDarkness:Iintermediary field_9226Lnet/minecraft/class_1937;field_9226:Iofficial fLdun;f:I
-
lcgBlockSeed
protected int lcgBlockSeed- Mappings:
Namespace Name Mixin selector named lcgBlockSeedLnet/minecraft/world/World;lcgBlockSeed:Iintermediary field_9256Lnet/minecraft/class_1937;field_9256:Iofficial sLdun;s:I
-
lcgBlockSeedIncrement
protected final int lcgBlockSeedIncrement- See Also:
- Mappings:
Namespace Name Mixin selector named lcgBlockSeedIncrementLnet/minecraft/world/World;lcgBlockSeedIncrement:Iintermediary field_9238Lnet/minecraft/class_1937;field_9238:Iofficial tLdun;t:I
-
lastRainGradient
protected float lastRainGradient- Mappings:
Namespace Name Mixin selector named lastRainGradientLnet/minecraft/world/World;lastRainGradient:Fintermediary field_9253Lnet/minecraft/class_1937;field_9253:Fofficial uLdun;u:F
-
rainGradient
protected float rainGradient- Mappings:
Namespace Name Mixin selector named rainGradientLnet/minecraft/world/World;rainGradient:Fintermediary field_9235Lnet/minecraft/class_1937;field_9235:Fofficial vLdun;v:F
-
lastThunderGradient
protected float lastThunderGradient- Mappings:
Namespace Name Mixin selector named lastThunderGradientLnet/minecraft/world/World;lastThunderGradient:Fintermediary field_9251Lnet/minecraft/class_1937;field_9251:Fofficial wLdun;w:F
-
thunderGradient
protected float thunderGradient- Mappings:
Namespace Name Mixin selector named thunderGradientLnet/minecraft/world/World;thunderGradient:Fintermediary field_9234Lnet/minecraft/class_1937;field_9234:Fofficial xLdun;x:F
-
random
- Mappings:
Namespace Name Mixin selector named randomLnet/minecraft/world/World;random:Lnet/minecraft/util/math/random/Random;intermediary field_9229Lnet/minecraft/class_1937;field_9229:Lnet/minecraft/class_5819;official yLdun;y:Lbgq;
-
threadSafeRandom
Deprecated.- Mappings:
Namespace Name Mixin selector named threadSafeRandomLnet/minecraft/world/World;threadSafeRandom:Lnet/minecraft/util/math/random/Random;intermediary field_38861Lnet/minecraft/class_1937;field_38861:Lnet/minecraft/class_5819;official BLdun;B:Lbgq;
-
dimensionEntry
- Mappings:
Namespace Name Mixin selector named dimensionEntryLnet/minecraft/world/World;dimensionEntry:Lnet/minecraft/registry/entry/RegistryEntry;intermediary field_36402Lnet/minecraft/class_1937;field_36402:Lnet/minecraft/class_6880;official CLdun;C:Ljj;
-
properties
- Mappings:
Namespace Name Mixin selector named propertiesLnet/minecraft/world/World;properties:Lnet/minecraft/world/MutableWorldProperties;intermediary field_9232Lnet/minecraft/class_1937;field_9232:Lnet/minecraft/class_5269;official zLdun;z:Lflo;
-
isClient
private final boolean isClient- Mappings:
Namespace Name Mixin selector named isClientLnet/minecraft/world/World;isClient:Zintermediary field_9236Lnet/minecraft/class_1937;field_9236:Zofficial DLdun;D:Z
-
biomeAccess
- Mappings:
Namespace Name Mixin selector named biomeAccessLnet/minecraft/world/World;biomeAccess:Lnet/minecraft/world/biome/source/BiomeAccess;intermediary field_20639Lnet/minecraft/class_1937;field_20639:Lnet/minecraft/class_4543;official ELdun;E:Ldvq;
-
registryKey
- Mappings:
Namespace Name Mixin selector named registryKeyLnet/minecraft/world/World;registryKey:Lnet/minecraft/registry/RegistryKey;intermediary field_25176Lnet/minecraft/class_1937;field_25176:Lnet/minecraft/class_5321;official FLdun;F:Lamx;
-
registryManager
- Mappings:
Namespace Name Mixin selector named registryManagerLnet/minecraft/world/World;registryManager:Lnet/minecraft/registry/DynamicRegistryManager;intermediary field_42475Lnet/minecraft/class_1937;field_42475:Lnet/minecraft/class_5455;official GLdun;G:Ljx;
-
damageSources
- Mappings:
Namespace Name Mixin selector named damageSourcesLnet/minecraft/world/World;damageSources:Lnet/minecraft/entity/damage/DamageSources;intermediary field_42476Lnet/minecraft/class_1937;field_42476:Lnet/minecraft/class_8109;official HLdun;H:Lcer;
-
palettesFactory
- Mappings:
Namespace Name Mixin selector named palettesFactoryLnet/minecraft/world/World;palettesFactory:Lnet/minecraft/world/chunk/PalettesFactory;intermediary field_62535Lnet/minecraft/class_1937;field_62535:Lnet/minecraft/class_11897;official ILdun;I:Leoz;
-
field_63808
- Mappings:
Namespace Name Mixin selector named field_63808Lnet/minecraft/world/World;field_63808:Lnet/minecraft/class_12205;intermediary field_63808Lnet/minecraft/class_1937;field_63808:Lnet/minecraft/class_12205;official JLdun;J:Lcdz;
-
tickOrder
private long tickOrder- Mappings:
Namespace Name Mixin selector named tickOrderLnet/minecraft/world/World;tickOrder:Jintermediary field_35455Lnet/minecraft/class_1937;field_35455:Jofficial KLdun;K:J
-
-
Constructor Details
-
World
protected World(MutableWorldProperties properties, RegistryKey<World> registryRef, DynamicRegistryManager registryManager, RegistryEntry<DimensionType> registryEntry, boolean isClient, boolean debugWorld, long seed, int maxChainedNeighborUpdates) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/World;<init>(Lnet/minecraft/world/MutableWorldProperties;Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/registry/entry/RegistryEntry;ZZJI)Vintermediary <init>Lnet/minecraft/class_1937;<init>(Lnet/minecraft/class_5269;Lnet/minecraft/class_5321;Lnet/minecraft/class_5455;Lnet/minecraft/class_6880;ZZJI)Vofficial <init>Ldun;<init>(Lflo;Lamx;Ljx;Ljj;ZZJI)V
-
-
Method Details
-
isClient
public boolean isClient()Checks if this world view is on the logical client.If the value returned is false, it is expected that this world is present on a logical server.
-
getServer
- Specified by:
getServerin interfaceWorldAccess- Mappings:
Namespace Name Mixin selector named getServerLnet/minecraft/world/WorldAccess;getServer()Lnet/minecraft/server/MinecraftServer;intermediary method_8503Lnet/minecraft/class_1936;method_8503()Lnet/minecraft/server/MinecraftServer;official rLduo;r()Lnet/minecraft/server/MinecraftServer;
-
isInBuildLimit
Returns whether the position is inside the build limit.- Returns:
- whether the position is inside the build limit
- See Also:
- API Note:
- This method should be used for block placement. If the
action involves an entity interaction, additionally check for
canEntityModifyAt(net.minecraft.entity.Entity, net.minecraft.util.math.BlockPos)(which checks the spawn protection and world border). - Implementation Note:
- In addition to the height limit, the position's X and Z
coordinates must be greater than or equal to
-30_000_000and less than30_000_000. - Mappings:
Namespace Name Mixin selector named isInBuildLimitLnet/minecraft/world/World;isInBuildLimit(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_24794Lnet/minecraft/class_1937;method_24794(Lnet/minecraft/class_2338;)Zofficial lLdun;l(Liz;)Z
-
isValid
Returns whether the position is valid.- Returns:
- whether the position is valid
- See Also:
- API Note:
- This method should be used for teleportation. To test for
block positions, use
isInBuildLimit(net.minecraft.util.math.BlockPos)(which checks the height limit), and if the action involves an entity interaction, additionally check forcanEntityModifyAt(net.minecraft.entity.Entity, net.minecraft.util.math.BlockPos)(which checks the spawn protection and world border). - Implementation Note:
- The position is considered valid if the X and Z
coordinates are greater than or equal to
-30_000_000and less than30_000_000, and the Y coordinate is greater or equal to-20_000_000and less than20_000_000. - Mappings:
Namespace Name Mixin selector named isValidLnet/minecraft/world/World;isValid(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_25953Lnet/minecraft/class_1937;method_25953(Lnet/minecraft/class_2338;)Zofficial mLdun;m(Liz;)Z
-
isValidHorizontally
- Mappings:
Namespace Name Mixin selector named isValidHorizontallyLnet/minecraft/world/World;isValidHorizontally(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_8558Lnet/minecraft/class_1937;method_8558(Lnet/minecraft/class_2338;)Zofficial cLdun;c(Liz;)Z
-
isInvalidVertically
private static boolean isInvalidVertically(int y) - Mappings:
Namespace Name Mixin selector named isInvalidVerticallyLnet/minecraft/world/World;isInvalidVertically(I)Zintermediary method_25952Lnet/minecraft/class_1937;method_25952(I)Zofficial bLdun;b(I)Z
-
getWorldChunk
Returns the chunk that containspos.- Returns:
- the chunk that contains
pos - Mappings:
Namespace Name Mixin selector named getWorldChunkLnet/minecraft/world/World;getWorldChunk(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/chunk/WorldChunk;intermediary method_8500Lnet/minecraft/class_1937;method_8500(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2818;official nLdun;n(Liz;)Leoq;
-
getChunk
Description copied from interface:WorldViewReturns the chunk with positionchunkXandchunkZ.- Specified by:
getChunkin interfaceWorldView- Returns:
- the chunk with position
chunkXandchunkZ - Mappings:
Namespace Name Mixin selector named getChunkLnet/minecraft/world/World;getChunk(II)Lnet/minecraft/world/chunk/WorldChunk;intermediary method_8497Lnet/minecraft/class_1937;method_8497(II)Lnet/minecraft/class_2818;official dLdun;d(II)Leoq;
-
getChunk
@Nullable public @Nullable Chunk getChunk(int chunkX, int chunkZ, ChunkStatus leastStatus, boolean create) - Specified by:
getChunkin interfaceWorldView- Mappings:
Namespace Name Mixin selector named getChunkLnet/minecraft/world/WorldView;getChunk(IILnet/minecraft/world/chunk/ChunkStatus;Z)Lnet/minecraft/world/chunk/Chunk;intermediary method_8402Lnet/minecraft/class_4538;method_8402(IILnet/minecraft/class_2806;Z)Lnet/minecraft/class_2791;official aLduq;a(IILepj;Z)Leof;
-
setBlockState
Updates the block state at a position, calling appropriate callbacks.When called on the server, the new block state is stored and propagated to clients and listeners as dictated by the supplied flags. Note that calling this on the client will update the world locally, but may not see the change persisted across loads. It's recommended to check whether this world is client before interacting with the world in this way.
The accepted values of these flags are:
- Specified by:
setBlockStatein interfaceModifiableWorld- Parameters:
pos- the target positionstate- the block state to setflags- the bitwise flag combination, as described above- See Also:
- Mappings:
Namespace Name Mixin selector named setBlockStateLnet/minecraft/world/ModifiableWorld;setBlockState(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;I)Zintermediary method_8652Lnet/minecraft/class_1945;method_8652(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;I)Zofficial aLduv;a(Liz;Lemh;I)Z
-
setBlockState
Updates the block state at a position, calling appropriate callbacks.When called on the server, the new block state is stored and propagated to clients and listeners as dictated by the supplied flags. Note that calling this on the client will update the world locally, but may not see the change persisted across loads. It's recommended to check whether this world is client before interacting with the world in this way.
See
setBlockState(BlockPos, BlockState, int)for a list of accepted flags.- Specified by:
setBlockStatein interfaceModifiableWorld- Parameters:
pos- the target positionstate- the block state to setflags- the bitwise flag combination, as described abovemaxUpdateDepth- the limit for the cascading block updates- Mappings:
Namespace Name Mixin selector named setBlockStateLnet/minecraft/world/ModifiableWorld;setBlockState(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;II)Zintermediary method_30092Lnet/minecraft/class_1945;method_30092(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;II)Zofficial aLduv;a(Liz;Lemh;II)Z
-
onBlockStateChanged
- Mappings:
Namespace Name Mixin selector named onBlockStateChangedLnet/minecraft/world/World;onBlockStateChanged(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;)Vintermediary method_66016Lnet/minecraft/class_1937;method_66016(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;)Vofficial aLdun;a(Liz;Lemh;Lemh;)V
-
removeBlock
Removes the block and replaces it with the fluid occupying the block (such as water inside kelp), or air if it does not exist.- Specified by:
removeBlockin interfaceModifiableWorld- Parameters:
move- whether the block was removed as part of piston moving blocks- Returns:
- whether the block was removed successfully
- See Also:
- Implementation Note:
- This does not emit the world event or the game event.
- Mappings:
Namespace Name Mixin selector named removeBlockLnet/minecraft/world/ModifiableWorld;removeBlock(Lnet/minecraft/util/math/BlockPos;Z)Zintermediary method_8650Lnet/minecraft/class_1945;method_8650(Lnet/minecraft/class_2338;Z)Zofficial aLduv;a(Liz;Z)Z
-
breakBlock
public boolean breakBlock(BlockPos pos, boolean drop, @Nullable @Nullable Entity breakingEntity, int maxUpdateDepth) Removes the block and replaces it with the fluid occupying the block (such as water inside kelp), or air if it does not exist. Additionally, this emits the world event and the game event.- Specified by:
breakBlockin interfaceModifiableWorld- Returns:
- whether the block was removed successfully
- See Also:
- Mappings:
Namespace Name Mixin selector named breakBlockLnet/minecraft/world/ModifiableWorld;breakBlock(Lnet/minecraft/util/math/BlockPos;ZLnet/minecraft/entity/Entity;I)Zintermediary method_30093Lnet/minecraft/class_1945;method_30093(Lnet/minecraft/class_2338;ZLnet/minecraft/class_1297;I)Zofficial aLduv;a(Liz;ZLcgd;I)Z
-
addBlockBreakParticles
- Mappings:
Namespace Name Mixin selector named addBlockBreakParticlesLnet/minecraft/world/World;addBlockBreakParticles(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary method_31595Lnet/minecraft/class_1937;method_31595(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial bLdun;b(Liz;Lemh;)V
-
setBlockState
- Mappings:
Namespace Name Mixin selector named setBlockStateLnet/minecraft/world/World;setBlockState(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Zintermediary method_8501Lnet/minecraft/class_1937;method_8501(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Zofficial cLdun;c(Liz;Lemh;)Z
-
updateListeners
public abstract void updateListeners(BlockPos pos, BlockState oldState, BlockState newState, int flags) - Mappings:
Namespace Name Mixin selector named updateListenersLnet/minecraft/world/World;updateListeners(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;I)Vintermediary method_8413Lnet/minecraft/class_1937;method_8413(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;I)Vofficial aLdun;a(Liz;Lemh;Lemh;I)V
-
scheduleBlockRerenderIfNeeded
- Mappings:
Namespace Name Mixin selector named scheduleBlockRerenderIfNeededLnet/minecraft/world/World;scheduleBlockRerenderIfNeeded(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;)Vintermediary method_16109Lnet/minecraft/class_1937;method_16109(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;)Vofficial bLdun;b(Liz;Lemh;Lemh;)V
-
updateNeighborsAlways
public void updateNeighborsAlways(BlockPos pos, Block sourceBlock, @Nullable @Nullable WireOrientation orientation) Emits a neighbor update to all 6 neighboring blocks ofpos.- See Also:
- Mappings:
Namespace Name Mixin selector named updateNeighborsAlwaysLnet/minecraft/world/World;updateNeighborsAlways(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/world/block/WireOrientation;)Vintermediary method_8452Lnet/minecraft/class_1937;method_8452(Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;Lnet/minecraft/class_9904;)Vofficial aLdun;a(Liz;Ldxq;Lfkd;)V
-
updateNeighborsExcept
public void updateNeighborsExcept(BlockPos pos, Block sourceBlock, Direction direction, @Nullable @Nullable WireOrientation orientation) Emits a neighbor update to neighboring blocks ofpos, except for the one indirectiondirection.- See Also:
- Mappings:
Namespace Name Mixin selector named updateNeighborsExceptLnet/minecraft/world/World;updateNeighborsExcept(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/Direction;Lnet/minecraft/world/block/WireOrientation;)Vintermediary method_8508Lnet/minecraft/class_1937;method_8508(Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;Lnet/minecraft/class_2350;Lnet/minecraft/class_9904;)Vofficial aLdun;a(Liz;Ldxq;Ljf;Lfkd;)V
-
updateNeighbor
public void updateNeighbor(BlockPos pos, Block sourceBlock, @Nullable @Nullable WireOrientation orientation) Triggers a neighbor update originating fromsourcePosatpos.- See Also:
- Mappings:
Namespace Name Mixin selector named updateNeighborLnet/minecraft/world/World;updateNeighbor(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/world/block/WireOrientation;)Vintermediary method_8492Lnet/minecraft/class_1937;method_8492(Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;Lnet/minecraft/class_9904;)Vofficial bLdun;b(Liz;Ldxq;Lfkd;)V
-
updateNeighbor
public void updateNeighbor(BlockState state, BlockPos pos, Block sourceBlock, @Nullable @Nullable WireOrientation orientation, boolean notify) - Mappings:
Namespace Name Mixin selector named updateNeighborLnet/minecraft/world/World;updateNeighbor(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/world/block/WireOrientation;Z)Vintermediary method_41410Lnet/minecraft/class_1937;method_41410(Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;Lnet/minecraft/class_9904;Z)Vofficial aLdun;a(Lemh;Liz;Ldxq;Lfkd;Z)V
-
replaceWithStateForNeighborUpdate
public void replaceWithStateForNeighborUpdate(Direction direction, BlockPos pos, BlockPos neighborPos, BlockState neighborState, int flags, int maxUpdateDepth) - Specified by:
replaceWithStateForNeighborUpdatein interfaceWorldAccess- Mappings:
Namespace Name Mixin selector named replaceWithStateForNeighborUpdateLnet/minecraft/world/WorldAccess;replaceWithStateForNeighborUpdate(Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;II)Vintermediary method_42308Lnet/minecraft/class_1936;method_42308(Lnet/minecraft/class_2350;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;II)Vofficial aLduo;a(Ljf;Liz;Liz;Lemh;II)V
-
getTopY
Returns the Y coordinate of the topmost block at the coordinatesxandzusingheightmap.- Specified by:
getTopYin interfaceWorldView- Returns:
- the Y coordinate of the topmost block at the coordinates
xandzusingheightmap - Mappings:
Namespace Name Mixin selector named getTopYLnet/minecraft/world/WorldView;getTopY(Lnet/minecraft/world/Heightmap$Type;II)Iintermediary method_8624Lnet/minecraft/class_4538;method_8624(Lnet/minecraft/class_2902$class_2903;II)Iofficial aLduq;a(Lesk$a;II)I
-
getLightingProvider
- Specified by:
getLightingProviderin interfaceBlockRenderView- Mappings:
Namespace Name Mixin selector named getLightingProviderLnet/minecraft/world/BlockRenderView;getLightingProvider()Lnet/minecraft/world/chunk/light/LightingProvider;intermediary method_22336Lnet/minecraft/class_1920;method_22336()Lnet/minecraft/class_3568;official D_Ldto;D_()Lfik;
-
getBlockState
Returns the block state atpos.- Specified by:
getBlockStatein interfaceBlockView- Returns:
- the block state at
pos - Implementation Note:
- This returns the block state for
Blocks.VOID_AIRif the Y coordinate is outside the height limit. - Mappings:
Namespace Name Mixin selector named getBlockStateLnet/minecraft/world/BlockView;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;intermediary method_8320Lnet/minecraft/class_1922;method_8320(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;official a_Ldtr;a_(Liz;)Lemh;
-
getFluidState
Returns the fluid state atpos.- Specified by:
getFluidStatein interfaceBlockView- Returns:
- the fluid state at
pos - Implementation Note:
- This returns the fluid state for
Fluids.EMPTYif the Y coordinate is outside the height limit. - Mappings:
Namespace Name Mixin selector named getFluidStateLnet/minecraft/world/BlockView;getFluidState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/fluid/FluidState;intermediary method_8316Lnet/minecraft/class_1922;method_8316(Lnet/minecraft/class_2338;)Lnet/minecraft/class_3610;official b_Ldtr;b_(Liz;)Lfiv;
-
isDay
public boolean isDay()- Mappings:
Namespace Name Mixin selector named isDayLnet/minecraft/world/World;isDay()Zintermediary method_8530Lnet/minecraft/class_1937;method_8530()Zofficial aeLdun;ae()Z
-
isNight
public boolean isNight()- Mappings:
Namespace Name Mixin selector named isNightLnet/minecraft/world/World;isNight()Zintermediary method_23886Lnet/minecraft/class_1937;method_23886()Zofficial afLdun;af()Z
-
isNightAndNatural
public boolean isNightAndNatural()- Mappings:
Namespace Name Mixin selector named isNightAndNaturalLnet/minecraft/world/World;isNightAndNatural()Zintermediary method_66346Lnet/minecraft/class_1937;method_66346()Zofficial agLdun;ag()Z
-
playSound
public void playSound(@Nullable @Nullable Entity source, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) - Specified by:
playSoundin interfaceWorldAccess- Mappings:
Namespace Name Mixin selector named playSoundLnet/minecraft/world/WorldAccess;playSound(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FF)Vintermediary method_8396Lnet/minecraft/class_1936;method_8396(Lnet/minecraft/class_1297;Lnet/minecraft/class_2338;Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)Vofficial aLduo;a(Lcgd;Liz;Lbdd;Lbdf;FF)V
-
playSound
public abstract void playSound(@Nullable @Nullable Entity source, double x, double y, double z, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) Plays a sound caused by a source. On the client, the sound will only play if the source is the same as the client's player. On the server, sound packets will be sent to players around the source, excluding the source itself.- Parameters:
source- the player that caused this sound, ornull- Mappings:
Namespace Name Mixin selector named playSoundLnet/minecraft/world/World;playSound(Lnet/minecraft/entity/Entity;DDDLnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/sound/SoundCategory;FFJ)Vintermediary method_8465Lnet/minecraft/class_1937;method_8465(Lnet/minecraft/class_1297;DDDLnet/minecraft/class_6880;Lnet/minecraft/class_3419;FFJ)Vofficial aLdun;a(Lcgd;DDDLjj;Lbdf;FFJ)V
-
playSound
public void playSound(@Nullable @Nullable Entity source, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch, long seed) Plays a sound caused by a source. On the client, the sound will only play if the source is the same as the client's player. On the server, sound packets will be sent to players around the source, excluding the source itself.- Parameters:
source- the entity that caused this sound, ornull- Mappings:
Namespace Name Mixin selector named playSoundLnet/minecraft/world/World;playSound(Lnet/minecraft/entity/Entity;DDDLnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FFJ)Vintermediary method_47967Lnet/minecraft/class_1937;method_47967(Lnet/minecraft/class_1297;DDDLnet/minecraft/class_3414;Lnet/minecraft/class_3419;FFJ)Vofficial aLdun;a(Lcgd;DDDLbdd;Lbdf;FFJ)V
-
playSoundFromEntity
public abstract void playSoundFromEntity(@Nullable @Nullable Entity source, Entity entity, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) Plays a sound caused by a source at the provided entity's position. On the client, the sound will only play if the source is the same as the client's player. On the server, sound packets will be sent to players around the source, excluding the source itself.- Parameters:
source- the player that caused this sound, ornull- Mappings:
Namespace Name Mixin selector named playSoundFromEntityLnet/minecraft/world/World;playSoundFromEntity(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/sound/SoundCategory;FFJ)Vintermediary method_8449Lnet/minecraft/class_1937;method_8449(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;Lnet/minecraft/class_6880;Lnet/minecraft/class_3419;FFJ)Vofficial aLdun;a(Lcgd;Lcgd;Ljj;Lbdf;FFJ)V
-
playSound
public void playSound(@Nullable @Nullable Entity source, double x, double y, double z, SoundEvent sound, SoundCategory category) - Mappings:
Namespace Name Mixin selector named playSoundLnet/minecraft/world/World;playSound(Lnet/minecraft/entity/Entity;DDDLnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;)Vintermediary method_54762Lnet/minecraft/class_1937;method_54762(Lnet/minecraft/class_1297;DDDLnet/minecraft/class_3414;Lnet/minecraft/class_3419;)Vofficial aLdun;a(Lcgd;DDDLbdd;Lbdf;)V
-
playSound
public void playSound(@Nullable @Nullable Entity source, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch) Plays a sound caused by a source. On the client, the sound will only play if the source is the same as the client's player. On the server, sound packets will be sent to players around the source, excluding the source itself.- Parameters:
source- the entity that caused this sound, ornull- Mappings:
Namespace Name Mixin selector named playSoundLnet/minecraft/world/World;playSound(Lnet/minecraft/entity/Entity;DDDLnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FF)Vintermediary method_43128Lnet/minecraft/class_1937;method_43128(Lnet/minecraft/class_1297;DDDLnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)Vofficial aLdun;a(Lcgd;DDDLbdd;Lbdf;FF)V
-
playSound
public void playSound(@Nullable @Nullable Entity source, double x, double y, double z, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch) - Mappings:
Namespace Name Mixin selector named playSoundLnet/minecraft/world/World;playSound(Lnet/minecraft/entity/Entity;DDDLnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/sound/SoundCategory;FF)Vintermediary method_60511Lnet/minecraft/class_1937;method_60511(Lnet/minecraft/class_1297;DDDLnet/minecraft/class_6880;Lnet/minecraft/class_3419;FF)Vofficial aLdun;a(Lcgd;DDDLjj;Lbdf;FF)V
-
playSoundFromEntity
public void playSoundFromEntity(@Nullable @Nullable Entity source, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch) Plays a sound caused by a source at the provided entity's position. On the client, the sound will only play if the source is the same as the client's player. On the server, sound packets will be sent to players around the source, excluding the source itself.- Parameters:
source- the entity that caused this sound, ornull- Mappings:
Namespace Name Mixin selector named playSoundFromEntityLnet/minecraft/world/World;playSoundFromEntity(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FF)Vintermediary method_43129Lnet/minecraft/class_1937;method_43129(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)Vofficial aLdun;a(Lcgd;Lcgd;Lbdd;Lbdf;FF)V
-
playSoundAtBlockCenterClient
public void playSoundAtBlockCenterClient(BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch, boolean useDistance) - Mappings:
Namespace Name Mixin selector named playSoundAtBlockCenterClientLnet/minecraft/world/World;playSoundAtBlockCenterClient(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FFZ)Vintermediary method_45446Lnet/minecraft/class_1937;method_45446(Lnet/minecraft/class_2338;Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FFZ)Vofficial aLdun;a(Liz;Lbdd;Lbdf;FFZ)V
-
playSoundFromEntityClient
public void playSoundFromEntityClient(Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch) - Mappings:
Namespace Name Mixin selector named playSoundFromEntityClientLnet/minecraft/world/World;playSoundFromEntityClient(Lnet/minecraft/entity/Entity;Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FF)Vintermediary method_55116Lnet/minecraft/class_1937;method_55116(Lnet/minecraft/class_1297;Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)Vofficial aLdun;a(Lcgd;Lbdd;Lbdf;FF)V
-
playSoundClient
public void playSoundClient(double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch, boolean useDistance) - Mappings:
Namespace Name Mixin selector named playSoundClientLnet/minecraft/world/World;playSoundClient(DDDLnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FFZ)Vintermediary method_8486Lnet/minecraft/class_1937;method_8486(DDDLnet/minecraft/class_3414;Lnet/minecraft/class_3419;FFZ)Vofficial aLdun;a(DDDLbdd;Lbdf;FFZ)V
-
playSoundClient
- Mappings:
Namespace Name Mixin selector named playSoundClientLnet/minecraft/world/World;playSoundClient(Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FF)Vintermediary method_67392Lnet/minecraft/class_1937;method_67392(Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)Vofficial aLdun;a(Lbdd;Lbdf;FF)V
-
addParticleClient
public void addParticleClient(ParticleEffect parameters, double x, double y, double z, double velocityX, double velocityY, double velocityZ) Adds a particle to the client's world renderer. Does nothing on the server.- Specified by:
addParticleClientin interfaceWorldAccess- See Also:
- Mappings:
Namespace Name Mixin selector named addParticleClientLnet/minecraft/world/WorldAccess;addParticleClient(Lnet/minecraft/particle/ParticleEffect;DDDDDD)Vintermediary method_8406Lnet/minecraft/class_1936;method_8406(Lnet/minecraft/class_2394;DDDDDD)Vofficial aLduo;a(Lmc;DDDDDD)V
-
addParticleClient
public void addParticleClient(ParticleEffect parameters, boolean force, boolean canSpawnOnMinimal, double x, double y, double z, double velocityX, double velocityY, double velocityZ) Adds a particle to the client's world renderer. Does nothing on the server.- See Also:
- Mappings:
Namespace Name Mixin selector named addParticleClientLnet/minecraft/world/World;addParticleClient(Lnet/minecraft/particle/ParticleEffect;ZZDDDDDD)Vintermediary method_8466Lnet/minecraft/class_1937;method_8466(Lnet/minecraft/class_2394;ZZDDDDDD)Vofficial aLdun;a(Lmc;ZZDDDDDD)V
-
addImportantParticleClient
public void addImportantParticleClient(ParticleEffect parameters, double x, double y, double z, double velocityX, double velocityY, double velocityZ) Adds an important particle to the client's world renderer. Important particles get added even if the Particles graphics option is set to Minimal Does nothing on the server.- See Also:
- Mappings:
Namespace Name Mixin selector named addImportantParticleClientLnet/minecraft/world/World;addImportantParticleClient(Lnet/minecraft/particle/ParticleEffect;DDDDDD)Vintermediary method_8494Lnet/minecraft/class_1937;method_8494(Lnet/minecraft/class_2394;DDDDDD)Vofficial bLdun;b(Lmc;DDDDDD)V
-
addImportantParticleClient
public void addImportantParticleClient(ParticleEffect parameters, boolean force, double x, double y, double z, double velocityX, double velocityY, double velocityZ) Adds an important particle to the client's world renderer. Important particles get added even if the Particles graphics option is set to Minimal Does nothing on the server.- See Also:
- Mappings:
Namespace Name Mixin selector named addImportantParticleClientLnet/minecraft/world/World;addImportantParticleClient(Lnet/minecraft/particle/ParticleEffect;ZDDDDDD)Vintermediary method_17452Lnet/minecraft/class_1937;method_17452(Lnet/minecraft/class_2394;ZDDDDDD)Vofficial aLdun;a(Lmc;ZDDDDDD)V
-
getSkyAngleRadians
public float getSkyAngleRadians(float tickProgress) - Mappings:
Namespace Name Mixin selector named getSkyAngleRadiansLnet/minecraft/world/World;getSkyAngleRadians(F)Fintermediary method_8442Lnet/minecraft/class_1937;method_8442(F)Fofficial aLdun;a(F)F
-
addBlockEntityTicker
- Mappings:
Namespace Name Mixin selector named addBlockEntityTickerLnet/minecraft/world/World;addBlockEntityTicker(Lnet/minecraft/world/chunk/BlockEntityTickInvoker;)Vintermediary method_31594Lnet/minecraft/class_1937;method_31594(Lnet/minecraft/class_5562;)Vofficial aLdun;a(Lelc;)V
-
tickBlockEntities
public void tickBlockEntities()- Mappings:
Namespace Name Mixin selector named tickBlockEntitiesLnet/minecraft/world/World;tickBlockEntities()Vintermediary method_18471Lnet/minecraft/class_1937;method_18471()Vofficial ahLdun;ah()V
-
tickEntity
- Mappings:
Namespace Name Mixin selector named tickEntityLnet/minecraft/world/World;tickEntity(Ljava/util/function/Consumer;Lnet/minecraft/entity/Entity;)Vintermediary method_18472Lnet/minecraft/class_1937;method_18472(Ljava/util/function/Consumer;Lnet/minecraft/class_1297;)Vofficial aLdun;a(Ljava/util/function/Consumer;Lcgd;)V
-
shouldUpdatePostDeath
- Mappings:
Namespace Name Mixin selector named shouldUpdatePostDeathLnet/minecraft/world/World;shouldUpdatePostDeath(Lnet/minecraft/entity/Entity;)Zintermediary method_38989Lnet/minecraft/class_1937;method_38989(Lnet/minecraft/class_1297;)Zofficial hLdun;h(Lcgd;)Z
-
shouldTickBlocksInChunk
public boolean shouldTickBlocksInChunk(long chunkPos) Returns whether the blocks in the specified chunk should get ticked.- Returns:
- whether the blocks in the specified chunk should get ticked
- Mappings:
Namespace Name Mixin selector named shouldTickBlocksInChunkLnet/minecraft/world/World;shouldTickBlocksInChunk(J)Zintermediary method_39425Lnet/minecraft/class_1937;method_39425(J)Zofficial aLdun;a(J)Z
-
shouldTickBlockPos
- Mappings:
Namespace Name Mixin selector named shouldTickBlockPosLnet/minecraft/world/World;shouldTickBlockPos(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_41411Lnet/minecraft/class_1937;method_41411(Lnet/minecraft/class_2338;)Zofficial oLdun;o(Liz;)Z
-
createExplosion
public void createExplosion(@Nullable @Nullable Entity entity, double x, double y, double z, float power, World.ExplosionSourceType explosionSourceType) Creates an explosion without creating fire.- See Also:
- Mappings:
Namespace Name Mixin selector named createExplosionLnet/minecraft/world/World;createExplosion(Lnet/minecraft/entity/Entity;DDDFLnet/minecraft/world/World$ExplosionSourceType;)Vintermediary method_8437Lnet/minecraft/class_1937;method_8437(Lnet/minecraft/class_1297;DDDFLnet/minecraft/class_1937$class_7867;)Vofficial aLdun;a(Lcgd;DDDFLdun$a;)V
-
createExplosion
public void createExplosion(@Nullable @Nullable Entity entity, double x, double y, double z, float power, boolean createFire, World.ExplosionSourceType explosionSourceType) Creates an explosion.- See Also:
- Mappings:
Namespace Name Mixin selector named createExplosionLnet/minecraft/world/World;createExplosion(Lnet/minecraft/entity/Entity;DDDFZLnet/minecraft/world/World$ExplosionSourceType;)Vintermediary method_8537Lnet/minecraft/class_1937;method_8537(Lnet/minecraft/class_1297;DDDFZLnet/minecraft/class_1937$class_7867;)Vofficial aLdun;a(Lcgd;DDDFZLdun$a;)V
-
createExplosion
public void createExplosion(@Nullable @Nullable Entity entity, @Nullable @Nullable DamageSource damageSource, @Nullable @Nullable ExplosionBehavior behavior, Vec3d pos, float power, boolean createFire, World.ExplosionSourceType explosionSourceType) Creates an explosion.- See Also:
- Mappings:
Namespace Name Mixin selector named createExplosionLnet/minecraft/world/World;createExplosion(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;Lnet/minecraft/world/explosion/ExplosionBehavior;Lnet/minecraft/util/math/Vec3d;FZLnet/minecraft/world/World$ExplosionSourceType;)Vintermediary method_46407Lnet/minecraft/class_1937;method_46407(Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;Lnet/minecraft/class_5362;Lnet/minecraft/class_243;FZLnet/minecraft/class_1937$class_7867;)Vofficial aLdun;a(Lcgd;Lceq;Lduh;Lfrd;FZLdun$a;)V
-
createExplosion
public void createExplosion(@Nullable @Nullable Entity entity, @Nullable @Nullable DamageSource damageSource, @Nullable @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, World.ExplosionSourceType explosionSourceType) - Mappings:
Namespace Name Mixin selector named createExplosionLnet/minecraft/world/World;createExplosion(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;Lnet/minecraft/world/explosion/ExplosionBehavior;DDDFZLnet/minecraft/world/World$ExplosionSourceType;)Vintermediary method_55117Lnet/minecraft/class_1937;method_55117(Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;Lnet/minecraft/class_5362;DDDFZLnet/minecraft/class_1937$class_7867;)Vofficial aLdun;a(Lcgd;Lceq;Lduh;DDDFZLdun$a;)V
-
createExplosion
public abstract void createExplosion(@Nullable @Nullable Entity entity, @Nullable @Nullable DamageSource damageSource, @Nullable @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, World.ExplosionSourceType explosionSourceType, ParticleEffect smallParticle, ParticleEffect largeParticle, Pool<BlockParticleEffect> blockParticles, RegistryEntry<SoundEvent> soundEvent) Creates an explosion.- Parameters:
entity- the entity that exploded (like TNT) ornullto indicate no entity explodeddamageSource- the custom damage source, ornullto use the default (DamageSources.explosion(Explosion))behavior- the explosion behavior, ornullto use the defaultcreateFire- whether the explosion should create fire- Mappings:
Namespace Name Mixin selector named createExplosionLnet/minecraft/world/World;createExplosion(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;Lnet/minecraft/world/explosion/ExplosionBehavior;DDDFZLnet/minecraft/world/World$ExplosionSourceType;Lnet/minecraft/particle/ParticleEffect;Lnet/minecraft/particle/ParticleEffect;Lnet/minecraft/util/collection/Pool;Lnet/minecraft/registry/entry/RegistryEntry;)Vintermediary method_8454Lnet/minecraft/class_1937;method_8454(Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;Lnet/minecraft/class_5362;DDDFZLnet/minecraft/class_1937$class_7867;Lnet/minecraft/class_2394;Lnet/minecraft/class_2394;Lnet/minecraft/class_6012;Lnet/minecraft/class_6880;)Vofficial aLdun;a(Lcgd;Lceq;Lduh;DDDFZLdun$a;Lmc;Lmc;Lcbh;Ljj;)V
-
asString
- Mappings:
Namespace Name Mixin selector named asStringLnet/minecraft/world/World;asString()Ljava/lang/String;intermediary method_31419Lnet/minecraft/class_1937;method_31419()Ljava/lang/String;official OLdun;O()Ljava/lang/String;
-
getBlockEntity
Returns the block entity atpos, ornullif there is none.- Specified by:
getBlockEntityin interfaceBlockView- Returns:
- the block entity at
pos, ornullif there is none - Mappings:
Namespace Name Mixin selector named getBlockEntityLnet/minecraft/world/BlockView;getBlockEntity(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;intermediary method_8321Lnet/minecraft/class_1922;method_8321(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;official c_Ldtr;c_(Liz;)Lejb;
-
addBlockEntity
- Mappings:
Namespace Name Mixin selector named addBlockEntityLnet/minecraft/world/World;addBlockEntity(Lnet/minecraft/block/entity/BlockEntity;)Vintermediary method_8438Lnet/minecraft/class_1937;method_8438(Lnet/minecraft/class_2586;)Vofficial bLdun;b(Lejb;)V
-
removeBlockEntity
- Mappings:
Namespace Name Mixin selector named removeBlockEntityLnet/minecraft/world/World;removeBlockEntity(Lnet/minecraft/util/math/BlockPos;)Vintermediary method_8544Lnet/minecraft/class_1937;method_8544(Lnet/minecraft/class_2338;)Vofficial pLdun;p(Liz;)V
-
isPosLoaded
- Mappings:
Namespace Name Mixin selector named isPosLoadedLnet/minecraft/world/World;isPosLoaded(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_8477Lnet/minecraft/class_1937;method_8477(Lnet/minecraft/class_2338;)Zofficial qLdun;q(Liz;)Z
-
isDirectionSolid
- Mappings:
Namespace Name Mixin selector named isDirectionSolidLnet/minecraft/world/World;isDirectionSolid(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Direction;)Zintermediary method_24368Lnet/minecraft/class_1937;method_24368(Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;Lnet/minecraft/class_2350;)Zofficial aLdun;a(Liz;Lcgd;Ljf;)Z
-
isTopSolid
- Mappings:
Namespace Name Mixin selector named isTopSolidLnet/minecraft/world/World;isTopSolid(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)Zintermediary method_8515Lnet/minecraft/class_1937;method_8515(Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)Zofficial aLdun;a(Liz;Lcgd;)Z
-
calculateAmbientDarkness
public void calculateAmbientDarkness()- Mappings:
Namespace Name Mixin selector named calculateAmbientDarknessLnet/minecraft/world/World;calculateAmbientDarkness()Vintermediary method_8533Lnet/minecraft/class_1937;method_8533()Vofficial aiLdun;ai()V
-
setMobSpawnOptions
public void setMobSpawnOptions(boolean spawnMonsters) Sets whether monsters or animals can spawn.- Mappings:
Namespace Name Mixin selector named setMobSpawnOptionsLnet/minecraft/world/World;setMobSpawnOptions(Z)Vintermediary method_8424Lnet/minecraft/class_1937;method_8424(Z)Vofficial bLdun;b(Z)V
-
setSpawnPoint
- Mappings:
Namespace Name Mixin selector named setSpawnPointLnet/minecraft/world/World;setSpawnPoint(Lnet/minecraft/world/WorldProperties$SpawnPoint;)Vintermediary method_27873Lnet/minecraft/class_1937;method_27873(Lnet/minecraft/class_5217$class_12064;)Vofficial aLdun;a(Lfky$a;)V
-
getSpawnPoint
- Mappings:
Namespace Name Mixin selector named getSpawnPointLnet/minecraft/world/World;getSpawnPoint()Lnet/minecraft/world/WorldProperties$SpawnPoint;intermediary method_74854Lnet/minecraft/class_1937;method_74854()Lnet/minecraft/class_5217$class_12064;official BLdun;B()Lfky$a;
-
ensureWithinBorder
- Mappings:
Namespace Name Mixin selector named ensureWithinBorderLnet/minecraft/world/World;ensureWithinBorder(Lnet/minecraft/world/WorldProperties$SpawnPoint;)Lnet/minecraft/world/WorldProperties$SpawnPoint;intermediary method_74891Lnet/minecraft/class_1937;method_74891(Lnet/minecraft/class_5217$class_12064;)Lnet/minecraft/class_5217$class_12064;official bLdun;b(Lfky$a;)Lfky$a;
-
initWeatherGradients
protected void initWeatherGradients()- Mappings:
Namespace Name Mixin selector named initWeatherGradientsLnet/minecraft/world/World;initWeatherGradients()Vintermediary method_8543Lnet/minecraft/class_1937;method_8543()Vofficial ajLdun;aj()V
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
getChunkAsView
- Specified by:
getChunkAsViewin interfaceCollisionView- Specified by:
getChunkAsViewin interfaceWorldView- Mappings:
Namespace Name Mixin selector named getChunkAsViewLnet/minecraft/world/CollisionView;getChunkAsView(II)Lnet/minecraft/world/BlockView;intermediary method_22338Lnet/minecraft/class_1941;method_22338(II)Lnet/minecraft/class_1922;official cLdtv;c(II)Ldtr;
-
getOtherEntities
public List<Entity> getOtherEntities(@Nullable @Nullable Entity except, Box box, Predicate<? super Entity> predicate) Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.- Specified by:
getOtherEntitiesin interfaceEntityView- Parameters:
except- the entity the box logically surrounds; this entity is ignored if it is inside the boxbox- the box in which to search for entitiespredicate- a predicate which entities must satisfy in order to be included in the returned list- Returns:
- a list of entities within a box, excluding the given entity, all satisfying the given predicate
- Mappings:
Namespace Name Mixin selector named getOtherEntitiesLnet/minecraft/world/EntityView;getOtherEntities(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;)Ljava/util/List;intermediary method_8333Lnet/minecraft/class_1924;method_8333(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/List;official aLduf;a(Lcgd;Lfqy;Ljava/util/function/Predicate;)Ljava/util/List;
-
getEntitiesByType
public <T extends Entity> List<T> getEntitiesByType(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate) - Specified by:
getEntitiesByTypein interfaceEntityView- Mappings:
Namespace Name Mixin selector named getEntitiesByTypeLnet/minecraft/world/EntityView;getEntitiesByType(Lnet/minecraft/util/TypeFilter;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;)Ljava/util/List;intermediary method_18023Lnet/minecraft/class_1924;method_18023(Lnet/minecraft/class_5575;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/List;official aLduf;a(Leqx;Lfqy;Ljava/util/function/Predicate;)Ljava/util/List;
-
collectEntitiesByType
public <T extends Entity> void collectEntitiesByType(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate, List<? super T> result) - Mappings:
Namespace Name Mixin selector named collectEntitiesByTypeLnet/minecraft/world/World;collectEntitiesByType(Lnet/minecraft/util/TypeFilter;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;Ljava/util/List;)Vintermediary method_47574Lnet/minecraft/class_1937;method_47574(Lnet/minecraft/class_5575;Lnet/minecraft/class_238;Ljava/util/function/Predicate;Ljava/util/List;)Vofficial aLdun;a(Leqx;Lfqy;Ljava/util/function/Predicate;Ljava/util/List;)V
-
collectEntitiesByType
public <T extends Entity> void collectEntitiesByType(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate, List<? super T> result, int limit) Collects entities of the given type inbox, up tolimit. Using this can improve performance, especially iflimitis small.- See Also:
- Mappings:
Namespace Name Mixin selector named collectEntitiesByTypeLnet/minecraft/world/World;collectEntitiesByType(Lnet/minecraft/util/TypeFilter;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;Ljava/util/List;I)Vintermediary method_47575Lnet/minecraft/class_1937;method_47575(Lnet/minecraft/class_5575;Lnet/minecraft/class_238;Ljava/util/function/Predicate;Ljava/util/List;I)Vofficial aLdun;a(Leqx;Lfqy;Ljava/util/function/Predicate;Ljava/util/List;I)V
-
hasEntities
public <T extends Entity> boolean hasEntities(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate) Checks if entities of the given type exist inbox. This has the same performance cost ascollectEntitiesByType(net.minecraft.util.TypeFilter<net.minecraft.entity.Entity, T>, net.minecraft.util.math.Box, java.util.function.Predicate<? super T>, java.util.List<? super T>)withlimitset to 1.- See Also:
- Mappings:
Namespace Name Mixin selector named hasEntitiesLnet/minecraft/world/World;hasEntities(Lnet/minecraft/util/TypeFilter;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;)Zintermediary method_74143Lnet/minecraft/class_1937;method_74143(Lnet/minecraft/class_5575;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Zofficial bLdun;b(Leqx;Lfqy;Ljava/util/function/Predicate;)Z
-
getCrammedEntities
- Mappings:
Namespace Name Mixin selector named getCrammedEntitiesLnet/minecraft/world/World;getCrammedEntities(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Ljava/util/List;intermediary method_66349Lnet/minecraft/class_1937;method_66349(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/util/List;official iLdun;i(Lcgd;Lfqy;)Ljava/util/List;
-
getEntityById
Returns the entity using the entity ID, ornullif none was found.Entity ID is ephemeral and changes after server restart. Use the UUID for persistent storage instead.
- Returns:
- the entity using the entity ID, or
nullif none was found - See Also:
- Mappings:
Namespace Name Mixin selector named getEntityByIdLnet/minecraft/world/World;getEntityById(I)Lnet/minecraft/entity/Entity;intermediary method_8469Lnet/minecraft/class_1937;method_8469(I)Lnet/minecraft/class_1297;official aLdun;a(I)Lcgd;
-
getEntity
- Mappings:
Namespace Name Mixin selector named getEntityLnet/minecraft/world/World;getEntity(Ljava/util/UUID;)Lnet/minecraft/entity/Entity;intermediary method_66347Lnet/minecraft/class_1937;method_66347(Ljava/util/UUID;)Lnet/minecraft/class_1297;official dLdun;d(Ljava/util/UUID;)Lcgd;
-
getEntityAnyDimension
- Mappings:
Namespace Name Mixin selector named getEntityAnyDimensionLnet/minecraft/world/World;getEntityAnyDimension(Ljava/util/UUID;)Lnet/minecraft/entity/Entity;intermediary method_73284Lnet/minecraft/class_1937;method_73284(Ljava/util/UUID;)Lnet/minecraft/class_1297;official aLdun;a(Ljava/util/UUID;)Lcgd;
-
getPlayerAnyDimension
- Mappings:
Namespace Name Mixin selector named getPlayerAnyDimensionLnet/minecraft/world/World;getPlayerAnyDimension(Ljava/util/UUID;)Lnet/minecraft/entity/player/PlayerEntity;intermediary method_73285Lnet/minecraft/class_1937;method_73285(Ljava/util/UUID;)Lnet/minecraft/class_1657;official bLdun;b(Ljava/util/UUID;)Ldcb;
-
getEnderDragonParts
- Mappings:
Namespace Name Mixin selector named getEnderDragonPartsLnet/minecraft/world/World;getEnderDragonParts()Ljava/util/Collection;intermediary method_65097Lnet/minecraft/class_1937;method_65097()Ljava/util/Collection;official uLdun;u()Ljava/util/Collection;
-
markDirty
- Mappings:
Namespace Name Mixin selector named markDirtyLnet/minecraft/world/World;markDirty(Lnet/minecraft/util/math/BlockPos;)Vintermediary method_8524Lnet/minecraft/class_1937;method_8524(Lnet/minecraft/class_2338;)Vofficial rLdun;r(Liz;)V
-
loadBlockEntity
- Mappings:
Namespace Name Mixin selector named loadBlockEntityLnet/minecraft/world/World;loadBlockEntity(Lnet/minecraft/block/entity/BlockEntity;)Vintermediary method_71970Lnet/minecraft/class_1937;method_71970(Lnet/minecraft/class_2586;)Vofficial aLdun;a(Lejb;)V
-
getTimeOfDay
public long getTimeOfDay()Returns the time of day.Time of day is different to "time", which is incremented on every tick and cannot be modified; Time of day affects the day-night cycle, can be changed using
/time command, and can be frozen ifdoDaylightCyclegamerule is turned off. Time is used to track scheduled ticks and cannot be modified or frozen.- Returns:
- the time of day
- See Also:
- Mappings:
Namespace Name Mixin selector named getTimeOfDayLnet/minecraft/world/World;getTimeOfDay()Jintermediary method_8532Lnet/minecraft/class_1937;method_8532()Jofficial akLdun;ak()J
-
canEntityModifyAt
Returns whetherentitycan modify blocks atpos.- Returns:
- whether
entitycan modify blocks atpos - See Also:
- Implementation Note:
- For players, this checks the spawn protection and the world border.
This is always
trueon the client and for non-player entities. - Mappings:
Namespace Name Mixin selector named canEntityModifyAtLnet/minecraft/world/World;canEntityModifyAt(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;)Zintermediary method_8505Lnet/minecraft/class_1937;method_8505(Lnet/minecraft/class_1297;Lnet/minecraft/class_2338;)Zofficial aLdun;a(Lcgd;Liz;)Z
-
sendEntityStatus
Sends the entity status to nearby players.- See Also:
- Mappings:
Namespace Name Mixin selector named sendEntityStatusLnet/minecraft/world/World;sendEntityStatus(Lnet/minecraft/entity/Entity;B)Vintermediary method_8421Lnet/minecraft/class_1937;method_8421(Lnet/minecraft/class_1297;B)Vofficial aLdun;a(Lcgd;B)V
-
sendEntityDamage
- Mappings:
Namespace Name Mixin selector named sendEntityDamageLnet/minecraft/world/World;sendEntityDamage(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;)Vintermediary method_48760Lnet/minecraft/class_1937;method_48760(Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;)Vofficial aLdun;a(Lcgd;Lceq;)V
-
addSyncedBlockEvent
- Mappings:
Namespace Name Mixin selector named addSyncedBlockEventLnet/minecraft/world/World;addSyncedBlockEvent(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;II)Vintermediary method_8427Lnet/minecraft/class_1937;method_8427(Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;II)Vofficial aLdun;a(Liz;Ldxq;II)V
-
getLevelProperties
- Specified by:
getLevelPropertiesin interfaceWorldAccess- Mappings:
Namespace Name Mixin selector named getLevelPropertiesLnet/minecraft/world/WorldAccess;getLevelProperties()Lnet/minecraft/world/WorldProperties;intermediary method_8401Lnet/minecraft/class_1936;method_8401()Lnet/minecraft/class_5217;official E_Lduo;E_()Lfky;
-
getTickManager
- Mappings:
Namespace Name Mixin selector named getTickManagerLnet/minecraft/world/World;getTickManager()Lnet/minecraft/world/tick/TickManager;intermediary method_54719Lnet/minecraft/class_1937;method_54719()Lnet/minecraft/class_8921;official xLdun;x()Lcdj;
-
getThunderGradient
public float getThunderGradient(float tickProgress) - Mappings:
Namespace Name Mixin selector named getThunderGradientLnet/minecraft/world/World;getThunderGradient(F)Fintermediary method_8478Lnet/minecraft/class_1937;method_8478(F)Fofficial bLdun;b(F)F
-
setThunderGradient
public void setThunderGradient(float thunderGradient) - Mappings:
Namespace Name Mixin selector named setThunderGradientLnet/minecraft/world/World;setThunderGradient(F)Vintermediary method_8496Lnet/minecraft/class_1937;method_8496(F)Vofficial cLdun;c(F)V
-
getRainGradient
public float getRainGradient(float tickProgress) - Mappings:
Namespace Name Mixin selector named getRainGradientLnet/minecraft/world/World;getRainGradient(F)Fintermediary method_8430Lnet/minecraft/class_1937;method_8430(F)Fofficial dLdun;d(F)F
-
setRainGradient
public void setRainGradient(float rainGradient) - Mappings:
Namespace Name Mixin selector named setRainGradientLnet/minecraft/world/World;setRainGradient(F)Vintermediary method_8519Lnet/minecraft/class_1937;method_8519(F)Vofficial eLdun;e(F)V
-
canHaveWeather
private boolean canHaveWeather()- Mappings:
Namespace Name Mixin selector named canHaveWeatherLnet/minecraft/world/World;canHaveWeather()Zintermediary method_63020Lnet/minecraft/class_1937;method_63020()Zofficial aLdun;a()Z
-
isThundering
public boolean isThundering()- Mappings:
Namespace Name Mixin selector named isThunderingLnet/minecraft/world/World;isThundering()Zintermediary method_8546Lnet/minecraft/class_1937;method_8546()Zofficial alLdun;al()Z
-
isRaining
public boolean isRaining()Returns whether it is raining.- Returns:
- whether it is raining
- See Also:
- Mappings:
Namespace Name Mixin selector named isRainingLnet/minecraft/world/World;isRaining()Zintermediary method_8419Lnet/minecraft/class_1937;method_8419()Zofficial amLdun;am()Z
-
hasRain
Returns whether it can rain atpos.- Returns:
- whether it can rain at
pos - See Also:
- Implementation Note:
- This returns
trueif a rain is ongoing, the biome and the position allows it to rain, and there are no blocks above the position. - Mappings:
Namespace Name Mixin selector named hasRainLnet/minecraft/world/World;hasRain(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_8520Lnet/minecraft/class_1937;method_8520(Lnet/minecraft/class_2338;)Zofficial sLdun;s(Liz;)Z
-
getPrecipitation
- Mappings:
Namespace Name Mixin selector named getPrecipitationLnet/minecraft/world/World;getPrecipitation(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/biome/Biome$Precipitation;intermediary method_70745Lnet/minecraft/class_1937;method_70745(Lnet/minecraft/class_2338;)Lnet/minecraft/class_1959$class_1963;official tLdun;t(Liz;)Ldvo$c;
-
getMapState
- Mappings:
Namespace Name Mixin selector named getMapStateLnet/minecraft/world/World;getMapState(Lnet/minecraft/component/type/MapIdComponent;)Lnet/minecraft/item/map/MapState;intermediary method_17891Lnet/minecraft/class_1937;method_17891(Lnet/minecraft/class_9209;)Lnet/minecraft/class_22;official aLdun;a(Lfko;)Lfkq;
-
syncGlobalEvent
- Mappings:
Namespace Name Mixin selector named syncGlobalEventLnet/minecraft/world/World;syncGlobalEvent(ILnet/minecraft/util/math/BlockPos;I)Vintermediary method_8474Lnet/minecraft/class_1937;method_8474(ILnet/minecraft/class_2338;I)Vofficial bLdun;b(ILiz;I)V
-
addDetailsToCrashReport
- Mappings:
Namespace Name Mixin selector named addDetailsToCrashReportLnet/minecraft/world/World;addDetailsToCrashReport(Lnet/minecraft/util/crash/CrashReport;)Lnet/minecraft/util/crash/CrashReportSection;intermediary method_8538Lnet/minecraft/class_1937;method_8538(Lnet/minecraft/class_128;)Lnet/minecraft/class_129;official aLdun;a(Lp;)Lq;
-
setBlockBreakingInfo
- Mappings:
Namespace Name Mixin selector named setBlockBreakingInfoLnet/minecraft/world/World;setBlockBreakingInfo(ILnet/minecraft/util/math/BlockPos;I)Vintermediary method_8517Lnet/minecraft/class_1937;method_8517(ILnet/minecraft/class_2338;I)Vofficial aLdun;a(ILiz;I)V
-
addFireworkParticle
public void addFireworkParticle(double x, double y, double z, double velocityX, double velocityY, double velocityZ, List<FireworkExplosionComponent> explosions) - Mappings:
Namespace Name Mixin selector named addFireworkParticleLnet/minecraft/world/World;addFireworkParticle(DDDDDDLjava/util/List;)Vintermediary method_8547Lnet/minecraft/class_1937;method_8547(DDDDDDLjava/util/List;)Vofficial aLdun;a(DDDDDDLjava/util/List;)V
-
getScoreboard
- Mappings:
Namespace Name Mixin selector named getScoreboardLnet/minecraft/world/World;getScoreboard()Lnet/minecraft/scoreboard/Scoreboard;intermediary method_8428Lnet/minecraft/class_1937;method_8428()Lnet/minecraft/class_269;official aaLdun;aa()Lfsi;
-
updateComparators
- Mappings:
Namespace Name Mixin selector named updateComparatorsLnet/minecraft/world/World;updateComparators(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;)Vintermediary method_8455Lnet/minecraft/class_1937;method_8455(Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;)Vofficial bLdun;b(Liz;Ldxq;)V
-
getAmbientDarkness
public int getAmbientDarkness()- Specified by:
getAmbientDarknessin interfaceWorldView- Mappings:
Namespace Name Mixin selector named getAmbientDarknessLnet/minecraft/world/WorldView;getAmbientDarkness()Iintermediary method_8594Lnet/minecraft/class_4538;method_8594()Iofficial F_Lduq;F_()I
-
setLightningTicksLeft
public void setLightningTicksLeft(int lightningTicksLeft) - Mappings:
Namespace Name Mixin selector named setLightningTicksLeftLnet/minecraft/world/World;setLightningTicksLeft(I)Vintermediary method_8509Lnet/minecraft/class_1937;method_8509(I)Vofficial cLdun;c(I)V
-
sendPacket
- Mappings:
Namespace Name Mixin selector named sendPacketLnet/minecraft/world/World;sendPacket(Lnet/minecraft/network/packet/Packet;)Vintermediary method_8522Lnet/minecraft/class_1937;method_8522(Lnet/minecraft/class_2596;)Vofficial aLdun;a(Labd;)V
-
getDimension
- Specified by:
getDimensionin interfaceWorldView- Mappings:
Namespace Name Mixin selector named getDimensionLnet/minecraft/world/WorldView;getDimension()Lnet/minecraft/world/dimension/DimensionType;intermediary method_8597Lnet/minecraft/class_4538;method_8597()Lnet/minecraft/class_2874;official G_Lduq;G_()Leqi;
-
getDimensionEntry
- Mappings:
Namespace Name Mixin selector named getDimensionEntryLnet/minecraft/world/World;getDimensionEntry()Lnet/minecraft/registry/entry/RegistryEntry;intermediary method_40134Lnet/minecraft/class_1937;method_40134()Lnet/minecraft/class_6880;official anLdun;an()Ljj;
-
getRegistryKey
- Mappings:
Namespace Name Mixin selector named getRegistryKeyLnet/minecraft/world/World;getRegistryKey()Lnet/minecraft/registry/RegistryKey;intermediary method_27983Lnet/minecraft/class_1937;method_27983()Lnet/minecraft/class_5321;official aoLdun;ao()Lamx;
-
getRandom
- Specified by:
getRandomin interfaceWorldAccess- Mappings:
Namespace Name Mixin selector named getRandomLnet/minecraft/world/WorldAccess;getRandom()Lnet/minecraft/util/math/random/Random;intermediary method_8409Lnet/minecraft/class_1936;method_8409()Lnet/minecraft/class_5819;official H_Lduo;H_()Lbgq;
-
testBlockState
- Specified by:
testBlockStatein interfaceTestableWorld- Mappings:
Namespace Name Mixin selector named testBlockStateLnet/minecraft/world/TestableWorld;testBlockState(Lnet/minecraft/util/math/BlockPos;Ljava/util/function/Predicate;)Zintermediary method_16358Lnet/minecraft/class_3746;method_16358(Lnet/minecraft/class_2338;Ljava/util/function/Predicate;)Zofficial aLdut;a(Liz;Ljava/util/function/Predicate;)Z
-
testFluidState
- Specified by:
testFluidStatein interfaceTestableWorld- Mappings:
Namespace Name Mixin selector named testFluidStateLnet/minecraft/world/TestableWorld;testFluidState(Lnet/minecraft/util/math/BlockPos;Ljava/util/function/Predicate;)Zintermediary method_35237Lnet/minecraft/class_3746;method_35237(Lnet/minecraft/class_2338;Ljava/util/function/Predicate;)Zofficial bLdut;b(Liz;Ljava/util/function/Predicate;)Z
-
getRecipeManager
- Mappings:
Namespace Name Mixin selector named getRecipeManagerLnet/minecraft/world/World;getRecipeManager()Lnet/minecraft/recipe/RecipeManager;intermediary method_8433Lnet/minecraft/class_1937;method_8433()Lnet/minecraft/class_10286;official ZLdun;Z()Ldpe;
-
getRandomPosInChunk
- Mappings:
Namespace Name Mixin selector named getRandomPosInChunkLnet/minecraft/world/World;getRandomPosInChunk(IIII)Lnet/minecraft/util/math/BlockPos;intermediary method_8536Lnet/minecraft/class_1937;method_8536(IIII)Lnet/minecraft/class_2338;official aLdun;a(IIII)Liz;
-
isSavingDisabled
public boolean isSavingDisabled()- Mappings:
Namespace Name Mixin selector named isSavingDisabledLnet/minecraft/world/World;isSavingDisabled()Zintermediary method_8458Lnet/minecraft/class_1937;method_8458()Zofficial yLdun;y()Z
-
getBiomeAccess
- Specified by:
getBiomeAccessin interfaceWorldView- Mappings:
Namespace Name Mixin selector named getBiomeAccessLnet/minecraft/world/WorldView;getBiomeAccess()Lnet/minecraft/world/biome/source/BiomeAccess;intermediary method_22385Lnet/minecraft/class_4538;method_22385()Lnet/minecraft/class_4543;official I_Lduq;I_()Ldvq;
-
isDebugWorld
public final boolean isDebugWorld()Checks if this world is a debug world.Debug worlds are not modifiable. They have a barrier layer at y=60, and lists all possible block states in game at y=70, helpful for finding block rendering and model errors.
- See Also:
- Mappings:
Namespace Name Mixin selector named isDebugWorldLnet/minecraft/world/World;isDebugWorld()Zintermediary method_27982Lnet/minecraft/class_1937;method_27982()Zofficial apLdun;ap()Z
-
getEntityLookup
- Mappings:
Namespace Name Mixin selector named getEntityLookupLnet/minecraft/world/World;getEntityLookup()Lnet/minecraft/world/entity/EntityLookup;intermediary method_31592Lnet/minecraft/class_1937;method_31592()Lnet/minecraft/class_5577;official LLdun;L()Leqz;
-
getTickOrder
public long getTickOrder()- Specified by:
getTickOrderin interfaceWorldAccess- Mappings:
Namespace Name Mixin selector named getTickOrderLnet/minecraft/world/WorldAccess;getTickOrder()Jintermediary method_39224Lnet/minecraft/class_1936;method_39224()Jofficial J_Lduo;J_()J
-
getRegistryManager
- Specified by:
getRegistryManagerin interfaceWorldView- Mappings:
Namespace Name Mixin selector named getRegistryManagerLnet/minecraft/world/WorldView;getRegistryManager()Lnet/minecraft/registry/DynamicRegistryManager;intermediary method_30349Lnet/minecraft/class_4538;method_30349()Lnet/minecraft/class_5455;official K_Lduq;K_()Ljx;
-
getDamageSources
- Mappings:
Namespace Name Mixin selector named getDamageSourcesLnet/minecraft/world/World;getDamageSources()Lnet/minecraft/entity/damage/DamageSources;intermediary method_48963Lnet/minecraft/class_1937;method_48963()Lnet/minecraft/class_8109;official aqLdun;aq()Lcer;
-
method_75598
- Specified by:
method_75598in interfaceWorldView- Mappings:
Namespace Name Mixin selector named method_75598Lnet/minecraft/world/World;method_75598()Lnet/minecraft/class_12205;intermediary method_75728Lnet/minecraft/class_1937;method_75728()Lnet/minecraft/class_12205;official arLdun;ar()Lcdz;
-
getBrewingRecipeRegistry
- Mappings:
Namespace Name Mixin selector named getBrewingRecipeRegistryLnet/minecraft/world/World;getBrewingRecipeRegistry()Lnet/minecraft/recipe/BrewingRecipeRegistry;intermediary method_59547Lnet/minecraft/class_1937;method_59547()Lnet/minecraft/class_1845;official QLdun;Q()Ldmc;
-
getFuelRegistry
- Mappings:
Namespace Name Mixin selector named getFuelRegistryLnet/minecraft/world/World;getFuelRegistry()Lnet/minecraft/item/FuelRegistry;intermediary method_61269Lnet/minecraft/class_1937;method_61269()Lnet/minecraft/class_9895;official RLdun;R()Lekb;
-
getBlockColor
- Mappings:
Namespace Name Mixin selector named getBlockColorLnet/minecraft/world/World;getBlockColor(Lnet/minecraft/util/math/BlockPos;)Iintermediary method_67233Lnet/minecraft/class_1937;method_67233(Lnet/minecraft/class_2338;)Iofficial uLdun;u(Liz;)I
-
getPalettesFactory
- Mappings:
Namespace Name Mixin selector named getPalettesFactoryLnet/minecraft/world/World;getPalettesFactory()Lnet/minecraft/world/chunk/PalettesFactory;intermediary method_74142Lnet/minecraft/class_1937;method_74142()Lnet/minecraft/class_11897;official asLdun;as()Leoz;
-