Class World
- All Implemented Interfaces:
AutoCloseable,BiomeAccess.Storage,BlockRenderView,BlockView,CollisionView,EntityView,HeightLimitView,LunarWorldView,ModifiableTestableWorld,ModifiableWorld,RedstoneView,RegistryWorldView,TestableWorld,WorldAccess,WorldView
- Direct Known Subclasses:
ClientWorld,ServerWorld
- Mappings:
Namespace Name intermediary net/minecraft/class_1937official cmknamed net/minecraft/world/World
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final BiomeAccessprotected final List<BlockEntityTickInvoker>private final WorldBorderstatic final com.mojang.serialization.Codec<RegistryKey<World>>private final DamageSourcesprivate final booleanprivate final RegistryKey<DimensionType>private final RegistryEntry<DimensionType>static final RegistryKey<World>static final intstatic final intstatic final intstatic final intfinal booleanprivate booleanprotected intprotected final intstatic final intstatic final intstatic final intprotected final NeighborUpdaterstatic final RegistryKey<World>static final RegistryKey<World>private final List<BlockEntityTickInvoker>protected final MutableWorldPropertiesprotected floatprotected floatfinal Randomprivate final RegistryKey<World>private final DynamicRegistryManagerprivate final Threadprivate final RandomDeprecated.protected floatprotected floatprivate longFields inherited from interface net.minecraft.world.RedstoneView
DIRECTIONS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWorld(MutableWorldProperties properties, RegistryKey<World> registryRef, DynamicRegistryManager registryManager, RegistryEntry<DimensionType> dimensionEntry, Supplier<Profiler> profiler, boolean isClient, boolean debugWorld, long biomeAccess, 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, @Nullable NbtCompound nbt) voidaddImportantParticle(ParticleEffect parameters, boolean alwaysSpawn, double x, double y, double z, double velocityX, double velocityY, double velocityZ) voidaddImportantParticle(ParticleEffect parameters, double x, double y, double z, double velocityX, double velocityY, double velocityZ) voidaddParticle(ParticleEffect parameters, boolean alwaysSpawn, double x, double y, double z, double velocityX, double velocityY, double velocityZ) voidaddParticle(ParticleEffect parameters, double x, double y, double z, double velocityX, double velocityY, double velocityZ) 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.voidbooleancanPlayerModifyAt(PlayerEntity player, BlockPos pos) Returns whetherplayercan modify blocks atpos.booleancanSetBlock(BlockPos pos) voidclose()<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.createExplosion(@Nullable Entity entity, double x, double y, double z, float power, boolean createFire, World.ExplosionSourceType explosionSourceType) Creates an explosion.createExplosion(@Nullable Entity entity, double x, double y, double z, float power, World.ExplosionSourceType explosionSourceType) Creates an explosion without creating fire.createExplosion(@Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, World.ExplosionSourceType explosionSourceType) Creates an explosion.createExplosion(@Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, World.ExplosionSourceType explosionSourceType, boolean particles) createExplosion(@Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, Vec3d pos, float power, boolean createFire, World.ExplosionSourceType explosionSourceType) Creates an explosion.voidintgetBlockEntity(BlockPos pos) Returns the block entity atpos, ornullif there is none.getBlockState(BlockPos pos) Returns the block state atpos.getChunk(int int2, int int3) Returns the chunk with positionchunkXandchunkZ.getChunk(int chunkX, int chunkZ, ChunkStatus leastStatus, boolean create) getChunkAsView(int chunkX, int chunkZ) private Explosion.DestructionTypegetDestructionType(GameRules.Key<GameRules.BooleanRule> gameRuleKey) getEntitiesByType(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate) 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.getMapState(String id) abstract intComputes a list of entities within some box, excluding the given entity, that satisfy the given predicate.floatgetRainGradient(float delta) getRandomPosInChunk(int x, int y, int z, int int2) abstract RecipeManagerabstract ScoreboardintfloatgetSkyAngleRadians(float tickDelta) floatfloatgetThunderGradient(float delta) longlonggetTime()Returns the time.longReturns 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.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()booleanReturns whether it is raining.booleanbooleanbooleanisTopSolid(BlockPos pos, Entity entity) static booleanReturns whether the position is valid.private static booleanvoidvoidonBlockChanged(BlockPos pos, BlockState oldBlock, BlockState newBlock) Called when a block state changed.voidplaySound(double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch, boolean useDistance) voidplaySound(@Nullable Entity except, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) abstract voidplaySound(@Nullable PlayerEntity except, double x, double y, double z, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) voidplaySound(@Nullable PlayerEntity except, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch) voidplaySound(@Nullable PlayerEntity except, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch, long seed) voidplaySound(@Nullable PlayerEntity except, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) voidplaySoundAtBlockCenter(BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch, boolean useDistance) abstract voidplaySoundFromEntity(@Nullable PlayerEntity except, Entity entity, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) voidplaySoundFromEntity(@Nullable PlayerEntity except, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch) abstract voidputMapState(String id, MapState state) 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, BlockState neighborState, BlockPos pos, BlockPos neighborPos, 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, boolean spawnAnimals) Sets whether monsters or animals can spawn.voidsetRainGradient(float rainGradient) 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) protected 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, BlockPos sourcePos, boolean notify) voidupdateNeighbor(BlockPos pos, Block sourceBlock, BlockPos sourcePos) Triggers a neighbor update originating fromsourcePosatpos.voidupdateNeighborsAlways(BlockPos pos, Block sourceBlock) Emits a neighbor update to all 6 neighboring blocks ofpos.voidupdateNeighborsExcept(BlockPos pos, Block sourceBlock, Direction direction) 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, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlockMethods inherited from interface net.minecraft.world.CollisionView
canCollide, canPlace, doesNotIntersectEntities, doesNotIntersectEntities, findClosestCollision, findSupportingBlockPos, getBlockCollisions, getCollisions, getEntityCollisions, isSpaceEmpty, isSpaceEmpty, isSpaceEmptyMethods inherited from interface net.minecraft.world.EntityView
getClosestEntity, getClosestEntity, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getEntitiesByClass, getNonSpectatingEntities, getOtherEntities, getPlayerByUuid, getPlayers, getPlayers, getTargets, isPlayerInRangeMethods inherited from interface net.minecraft.world.HeightLimitView
countVerticalSections, getBottomSectionCoord, getSectionIndex, getTopSectionCoord, getTopY, 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.WorldAccess
emitGameEvent, emitGameEvent, emitGameEvent, emitGameEvent, getBlockTickScheduler, getChunkManager, getDifficulty, getFluidTickScheduler, getLunarTime, isChunkLoaded, playSound, scheduleBlockTick, scheduleBlockTick, scheduleFluidTick, scheduleFluidTick, 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, getStatesInBoxIfLoaded, isAir, isChunkLoaded, isPosLoaded, isRegionLoaded, isRegionLoaded, isRegionLoaded, isSkyVisibleAllowingSea, isWater
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector intermediary field_25178Lnet/minecraft/class_1937;field_25178:Lcom/mojang/serialization/Codec;official gLcmk;g:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/World;CODEC:Lcom/mojang/serialization/Codec;
-
OVERWORLD
- Mappings:
Namespace Name Mixin selector intermediary field_25179Lnet/minecraft/class_1937;field_25179:Lnet/minecraft/class_5321;official hLcmk;h:Lacp;named OVERWORLDLnet/minecraft/world/World;OVERWORLD:Lnet/minecraft/registry/RegistryKey;
-
NETHER
- Mappings:
Namespace Name Mixin selector intermediary field_25180Lnet/minecraft/class_1937;field_25180:Lnet/minecraft/class_5321;official iLcmk;i:Lacp;named NETHERLnet/minecraft/world/World;NETHER:Lnet/minecraft/registry/RegistryKey;
-
END
- Mappings:
Namespace Name Mixin selector intermediary field_25181Lnet/minecraft/class_1937;field_25181:Lnet/minecraft/class_5321;official jLcmk;j:Lacp;named ENDLnet/minecraft/world/World;END:Lnet/minecraft/registry/RegistryKey;
-
HORIZONTAL_LIMIT
public static final int HORIZONTAL_LIMIT- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_30965Lnet/minecraft/class_1937;field_30965:Iofficial kLcmk;k:Inamed HORIZONTAL_LIMITLnet/minecraft/world/World;HORIZONTAL_LIMIT:I
-
MAX_UPDATE_DEPTH
public static final int MAX_UPDATE_DEPTH- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_30966Lnet/minecraft/class_1937;field_30966:Iofficial lLcmk;l:Inamed MAX_UPDATE_DEPTHLnet/minecraft/world/World;MAX_UPDATE_DEPTH:I
-
field_30967
public static final int field_30967- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_30967Lnet/minecraft/class_1937;field_30967:Iofficial mLcmk;m:Inamed field_30967Lnet/minecraft/world/World;field_30967:I
-
field_30968
public static final int field_30968- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_30968Lnet/minecraft/class_1937;field_30968:Iofficial nLcmk;n:Inamed field_30968Lnet/minecraft/world/World;field_30968:I
-
field_30969
public static final int field_30969- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_30969Lnet/minecraft/class_1937;field_30969:Iofficial oLcmk;o:Inamed field_30969Lnet/minecraft/world/World;field_30969:I
-
MAX_Y
public static final int MAX_Y- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_30970Lnet/minecraft/class_1937;field_30970:Iofficial pLcmk;p:Inamed MAX_YLnet/minecraft/world/World;MAX_Y:I
-
MIN_Y
public static final int MIN_Y- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_30971Lnet/minecraft/class_1937;field_30971:Iofficial qLcmk;q:Inamed MIN_YLnet/minecraft/world/World;MIN_Y:I
-
blockEntityTickers
- Mappings:
Namespace Name Mixin selector intermediary field_27082Lnet/minecraft/class_1937;field_27082:Ljava/util/List;official rLcmk;r:Ljava/util/List;named blockEntityTickersLnet/minecraft/world/World;blockEntityTickers:Ljava/util/List;
-
neighborUpdater
- Mappings:
Namespace Name Mixin selector intermediary field_38226Lnet/minecraft/class_1937;field_38226:Lnet/minecraft/class_7165;official sLcmk;s:Ldyd;named neighborUpdaterLnet/minecraft/world/World;neighborUpdater:Lnet/minecraft/world/block/NeighborUpdater;
-
pendingBlockEntityTickers
- Mappings:
Namespace Name Mixin selector intermediary field_27081Lnet/minecraft/class_1937;field_27081:Ljava/util/List;official aLcmk;a:Ljava/util/List;named pendingBlockEntityTickersLnet/minecraft/world/World;pendingBlockEntityTickers:Ljava/util/List;
-
iteratingTickingBlockEntities
private boolean iteratingTickingBlockEntities- Mappings:
Namespace Name Mixin selector intermediary field_9249Lnet/minecraft/class_1937;field_9249:Zofficial bLcmk;b:Znamed iteratingTickingBlockEntitiesLnet/minecraft/world/World;iteratingTickingBlockEntities:Z
-
thread
- Mappings:
Namespace Name Mixin selector intermediary field_17086Lnet/minecraft/class_1937;field_17086:Ljava/lang/Thread;official cLcmk;c:Ljava/lang/Thread;named threadLnet/minecraft/world/World;thread:Ljava/lang/Thread;
-
debugWorld
private final boolean debugWorld- Mappings:
Namespace Name Mixin selector intermediary field_24496Lnet/minecraft/class_1937;field_24496:Zofficial dLcmk;d:Znamed debugWorldLnet/minecraft/world/World;debugWorld:Z
-
ambientDarkness
private int ambientDarkness- Mappings:
Namespace Name Mixin selector intermediary field_9226Lnet/minecraft/class_1937;field_9226:Iofficial eLcmk;e:Inamed ambientDarknessLnet/minecraft/world/World;ambientDarkness:I
-
lcgBlockSeed
protected int lcgBlockSeed- Mappings:
Namespace Name Mixin selector intermediary field_9256Lnet/minecraft/class_1937;field_9256:Iofficial tLcmk;t:Inamed lcgBlockSeedLnet/minecraft/world/World;lcgBlockSeed:I
-
lcgBlockSeedIncrement
protected final int lcgBlockSeedIncrement- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_9238Lnet/minecraft/class_1937;field_9238:Iofficial uLcmk;u:Inamed lcgBlockSeedIncrementLnet/minecraft/world/World;lcgBlockSeedIncrement:I
-
rainGradientPrev
protected float rainGradientPrev- Mappings:
Namespace Name Mixin selector intermediary field_9253Lnet/minecraft/class_1937;field_9253:Fofficial vLcmk;v:Fnamed rainGradientPrevLnet/minecraft/world/World;rainGradientPrev:F
-
rainGradient
protected float rainGradient- Mappings:
Namespace Name Mixin selector intermediary field_9235Lnet/minecraft/class_1937;field_9235:Fofficial wLcmk;w:Fnamed rainGradientLnet/minecraft/world/World;rainGradient:F
-
thunderGradientPrev
protected float thunderGradientPrev- Mappings:
Namespace Name Mixin selector intermediary field_9251Lnet/minecraft/class_1937;field_9251:Fofficial xLcmk;x:Fnamed thunderGradientPrevLnet/minecraft/world/World;thunderGradientPrev:F
-
thunderGradient
protected float thunderGradient- Mappings:
Namespace Name Mixin selector intermediary field_9234Lnet/minecraft/class_1937;field_9234:Fofficial yLcmk;y:Fnamed thunderGradientLnet/minecraft/world/World;thunderGradient:F
-
random
- Mappings:
Namespace Name Mixin selector intermediary field_9229Lnet/minecraft/class_1937;field_9229:Lnet/minecraft/class_5819;official zLcmk;z:Lapf;named randomLnet/minecraft/world/World;random:Lnet/minecraft/util/math/random/Random;
-
threadSafeRandom
Deprecated.- Mappings:
Namespace Name Mixin selector intermediary field_38861Lnet/minecraft/class_1937;field_38861:Lnet/minecraft/class_5819;official fLcmk;f:Lapf;named threadSafeRandomLnet/minecraft/world/World;threadSafeRandom:Lnet/minecraft/util/math/random/Random;
-
dimension
- Mappings:
Namespace Name Mixin selector intermediary field_9247Lnet/minecraft/class_1937;field_9247:Lnet/minecraft/class_5321;official DLcmk;D:Lacp;named dimensionLnet/minecraft/world/World;dimension:Lnet/minecraft/registry/RegistryKey;
-
dimensionEntry
- Mappings:
Namespace Name Mixin selector intermediary field_36402Lnet/minecraft/class_1937;field_36402:Lnet/minecraft/class_6880;official ELcmk;E:Lhe;named dimensionEntryLnet/minecraft/world/World;dimensionEntry:Lnet/minecraft/registry/entry/RegistryEntry;
-
properties
- Mappings:
Namespace Name Mixin selector intermediary field_9232Lnet/minecraft/class_1937;field_9232:Lnet/minecraft/class_5269;official ALcmk;A:Ldzc;named propertiesLnet/minecraft/world/World;properties:Lnet/minecraft/world/MutableWorldProperties;
-
profiler
- Mappings:
Namespace Name Mixin selector intermediary field_16316Lnet/minecraft/class_1937;field_16316:Ljava/util/function/Supplier;official FLcmk;F:Ljava/util/function/Supplier;named profilerLnet/minecraft/world/World;profiler:Ljava/util/function/Supplier;
-
isClient
public final boolean isClient- Mappings:
Namespace Name Mixin selector intermediary field_9236Lnet/minecraft/class_1937;field_9236:Zofficial BLcmk;B:Znamed isClientLnet/minecraft/world/World;isClient:Z
-
border
- Mappings:
Namespace Name Mixin selector intermediary field_9223Lnet/minecraft/class_1937;field_9223:Lnet/minecraft/class_2784;official GLcmk;G:Lddp;named borderLnet/minecraft/world/World;border:Lnet/minecraft/world/border/WorldBorder;
-
biomeAccess
- Mappings:
Namespace Name Mixin selector intermediary field_20639Lnet/minecraft/class_1937;field_20639:Lnet/minecraft/class_4543;official HLcmk;H:Lcnk;named biomeAccessLnet/minecraft/world/World;biomeAccess:Lnet/minecraft/world/biome/source/BiomeAccess;
-
registryKey
- Mappings:
Namespace Name Mixin selector intermediary field_25176Lnet/minecraft/class_1937;field_25176:Lnet/minecraft/class_5321;official ILcmk;I:Lacp;named registryKeyLnet/minecraft/world/World;registryKey:Lnet/minecraft/registry/RegistryKey;
-
registryManager
- Mappings:
Namespace Name Mixin selector intermediary field_42475Lnet/minecraft/class_1937;field_42475:Lnet/minecraft/class_5455;official JLcmk;J:Lhs;named registryManagerLnet/minecraft/world/World;registryManager:Lnet/minecraft/registry/DynamicRegistryManager;
-
damageSources
- Mappings:
Namespace Name Mixin selector intermediary field_42476Lnet/minecraft/class_1937;field_42476:Lnet/minecraft/class_8109;official KLcmk;K:Lben;named damageSourcesLnet/minecraft/world/World;damageSources:Lnet/minecraft/entity/damage/DamageSources;
-
tickOrder
private long tickOrder- Mappings:
Namespace Name Mixin selector intermediary field_35455Lnet/minecraft/class_1937;field_35455:Jofficial LLcmk;L:Jnamed tickOrderLnet/minecraft/world/World;tickOrder:J
-
-
Constructor Details
-
World
protected World(MutableWorldProperties properties, RegistryKey<World> registryRef, DynamicRegistryManager registryManager, RegistryEntry<DimensionType> dimensionEntry, Supplier<Profiler> profiler, boolean isClient, boolean debugWorld, long biomeAccess, int maxChainedNeighborUpdates) - Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_1937;<init>(Lnet/minecraft/class_5269;Lnet/minecraft/class_5321;Lnet/minecraft/class_5455;Lnet/minecraft/class_6880;Ljava/util/function/Supplier;ZZJI)Vofficial <init>Lcmk;<init>(Ldzc;Lacp;Lhs;Lhe;Ljava/util/function/Supplier;ZZJI)Vnamed <init>Lnet/minecraft/world/World;<init>(Lnet/minecraft/world/MutableWorldProperties;Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/registry/entry/RegistryEntry;Ljava/util/function/Supplier;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 intermediary method_8503Lnet/minecraft/class_1936;method_8503()Lnet/minecraft/server/MinecraftServer;official nLcml;n()Lnet/minecraft/server/MinecraftServer;named getServerLnet/minecraft/world/WorldAccess;getServer()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 a player interaction, additionally check for
canPlayerModifyAt(net.minecraft.entity.player.PlayerEntity, 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 intermediary method_24794Lnet/minecraft/class_1937;method_24794(Lnet/minecraft/class_2338;)Zofficial jLcmk;j(Lgu;)Znamed isInBuildLimitLnet/minecraft/world/World;isInBuildLimit(Lnet/minecraft/util/math/BlockPos;)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 a player interaction, additionally check forcanPlayerModifyAt(net.minecraft.entity.player.PlayerEntity, 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 intermediary method_25953Lnet/minecraft/class_1937;method_25953(Lnet/minecraft/class_2338;)Zofficial kLcmk;k(Lgu;)Znamed isValidLnet/minecraft/world/World;isValid(Lnet/minecraft/util/math/BlockPos;)Z
-
isValidHorizontally
- Mappings:
Namespace Name Mixin selector intermediary method_8558Lnet/minecraft/class_1937;method_8558(Lnet/minecraft/class_2338;)Zofficial DLcmk;D(Lgu;)Znamed isValidHorizontallyLnet/minecraft/world/World;isValidHorizontally(Lnet/minecraft/util/math/BlockPos;)Z
-
isInvalidVertically
private static boolean isInvalidVertically(int y) - Mappings:
Namespace Name Mixin selector intermediary method_25952Lnet/minecraft/class_1937;method_25952(I)Zofficial bLcmk;b(I)Znamed isInvalidVerticallyLnet/minecraft/world/World;isInvalidVertically(I)Z
-
getWorldChunk
Returns the chunk that containspos.- Returns:
- the chunk that contains
pos - Mappings:
Namespace Name Mixin selector intermediary method_8500Lnet/minecraft/class_1937;method_8500(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2818;official lLcmk;l(Lgu;)Ldef;named getWorldChunkLnet/minecraft/world/World;getWorldChunk(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/chunk/WorldChunk;
-
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 intermediary method_8497Lnet/minecraft/class_1937;method_8497(II)Lnet/minecraft/class_2818;official dLcmk;d(II)Ldef;named getChunkLnet/minecraft/world/World;getChunk(II)Lnet/minecraft/world/chunk/WorldChunk;
-
getChunk
@Nullable public @Nullable Chunk getChunk(int chunkX, int chunkZ, ChunkStatus leastStatus, boolean create) - Specified by:
getChunkin interfaceWorldView- Mappings:
Namespace Name Mixin selector intermediary method_8402Lnet/minecraft/class_4538;method_8402(IILnet/minecraft/class_2806;Z)Lnet/minecraft/class_2791;official aLcmn;a(IILddz;Z)Lddu;named getChunkLnet/minecraft/world/WorldView;getChunk(IILnet/minecraft/world/chunk/ChunkStatus;Z)Lnet/minecraft/world/chunk/Chunk;
-
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 intermediary method_8652Lnet/minecraft/class_1945;method_8652(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;I)Zofficial aLcms;a(Lgu;Ldby;I)Znamed setBlockStateLnet/minecraft/world/ModifiableWorld;setBlockState(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;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
ModifiableWorld.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 intermediary method_30092Lnet/minecraft/class_1945;method_30092(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;II)Zofficial aLcms;a(Lgu;Ldby;II)Znamed setBlockStateLnet/minecraft/world/ModifiableWorld;setBlockState(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;II)Z
-
onBlockChanged
Called when a block state changed.- API Note:
- To implement logic for specific type of blocks, override
AbstractBlock.onStateReplaced(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, boolean)instead. - Mappings:
Namespace Name Mixin selector intermediary method_19282Lnet/minecraft/class_1937;method_19282(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;)Vofficial aLcmk;a(Lgu;Ldby;Ldby;)Vnamed onBlockChangedLnet/minecraft/world/World;onBlockChanged(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;)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:
- Mappings:
Namespace Name Mixin selector intermediary method_8650Lnet/minecraft/class_1945;method_8650(Lnet/minecraft/class_2338;Z)Zofficial aLcms;a(Lgu;Z)Znamed removeBlockLnet/minecraft/world/ModifiableWorld;removeBlock(Lnet/minecraft/util/math/BlockPos;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 intermediary method_30093Lnet/minecraft/class_1945;method_30093(Lnet/minecraft/class_2338;ZLnet/minecraft/class_1297;I)Zofficial aLcms;a(Lgu;ZLbfh;I)Znamed breakBlockLnet/minecraft/world/ModifiableWorld;breakBlock(Lnet/minecraft/util/math/BlockPos;ZLnet/minecraft/entity/Entity;I)Z
-
addBlockBreakParticles
- Mappings:
Namespace Name Mixin selector intermediary method_31595Lnet/minecraft/class_1937;method_31595(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial aLcmk;a(Lgu;Ldby;)Vnamed addBlockBreakParticlesLnet/minecraft/world/World;addBlockBreakParticles(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
setBlockState
- Mappings:
Namespace Name Mixin selector intermediary method_8501Lnet/minecraft/class_1937;method_8501(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Zofficial bLcmk;b(Lgu;Ldby;)Znamed setBlockStateLnet/minecraft/world/World;setBlockState(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
-
updateListeners
public abstract void updateListeners(BlockPos pos, BlockState oldState, BlockState newState, int flags) - Mappings:
Namespace Name Mixin selector intermediary method_8413Lnet/minecraft/class_1937;method_8413(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;I)Vofficial aLcmk;a(Lgu;Ldby;Ldby;I)Vnamed updateListenersLnet/minecraft/world/World;updateListeners(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;I)V
-
scheduleBlockRerenderIfNeeded
- Mappings:
Namespace Name Mixin selector intermediary method_16109Lnet/minecraft/class_1937;method_16109(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;)Vofficial bLcmk;b(Lgu;Ldby;Ldby;)Vnamed scheduleBlockRerenderIfNeededLnet/minecraft/world/World;scheduleBlockRerenderIfNeeded(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;)V
-
updateNeighborsAlways
Emits a neighbor update to all 6 neighboring blocks ofpos.- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_8452Lnet/minecraft/class_1937;method_8452(Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;)Vofficial aLcmk;a(Lgu;Lcpl;)Vnamed updateNeighborsAlwaysLnet/minecraft/world/World;updateNeighborsAlways(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;)V
-
updateNeighborsExcept
Emits a neighbor update to neighboring blocks ofpos, except for the one indirectiondirection.- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_8508Lnet/minecraft/class_1937;method_8508(Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;Lnet/minecraft/class_2350;)Vofficial aLcmk;a(Lgu;Lcpl;Lha;)Vnamed updateNeighborsExceptLnet/minecraft/world/World;updateNeighborsExcept(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/Direction;)V
-
updateNeighbor
Triggers a neighbor update originating fromsourcePosatpos.- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_8492Lnet/minecraft/class_1937;method_8492(Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;Lnet/minecraft/class_2338;)Vofficial aLcmk;a(Lgu;Lcpl;Lgu;)Vnamed updateNeighborLnet/minecraft/world/World;updateNeighbor(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;)V
-
updateNeighbor
public void updateNeighbor(BlockState state, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) - Mappings:
Namespace Name Mixin selector intermediary method_41410Lnet/minecraft/class_1937;method_41410(Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;Lnet/minecraft/class_2338;Z)Vofficial aLcmk;a(Ldby;Lgu;Lcpl;Lgu;Z)Vnamed updateNeighborLnet/minecraft/world/World;updateNeighbor(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;Z)V
-
replaceWithStateForNeighborUpdate
public void replaceWithStateForNeighborUpdate(Direction direction, BlockState neighborState, BlockPos pos, BlockPos neighborPos, int flags, int maxUpdateDepth) - Specified by:
replaceWithStateForNeighborUpdatein interfaceWorldAccess- Mappings:
Namespace Name Mixin selector intermediary method_42308Lnet/minecraft/class_1936;method_42308(Lnet/minecraft/class_2350;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;II)Vofficial aLcml;a(Lha;Ldby;Lgu;Lgu;II)Vnamed replaceWithStateForNeighborUpdateLnet/minecraft/world/WorldAccess;replaceWithStateForNeighborUpdate(Lnet/minecraft/util/math/Direction;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;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 intermediary method_8624Lnet/minecraft/class_4538;method_8624(Lnet/minecraft/class_2902$class_2903;II)Iofficial aLcmn;a(Ldhh$a;II)Inamed getTopYLnet/minecraft/world/WorldView;getTopY(Lnet/minecraft/world/Heightmap$Type;II)I
-
getLightingProvider
- Specified by:
getLightingProviderin interfaceBlockRenderView- Mappings:
Namespace Name Mixin selector intermediary method_22336Lnet/minecraft/class_1920;method_22336()Lnet/minecraft/class_3568;official r_Lcln;r_()Ldwq;named getLightingProviderLnet/minecraft/world/BlockRenderView;getLightingProvider()Lnet/minecraft/world/chunk/light/LightingProvider;
-
getBlockState
Returns the block state atpos.- Specified by:
getBlockStatein interfaceBlockView- Returns:
- the block state at
pos - Mappings:
Namespace Name Mixin selector intermediary method_8320Lnet/minecraft/class_1922;method_8320(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;official a_Lclq;a_(Lgu;)Ldby;named getBlockStateLnet/minecraft/world/BlockView;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
getFluidState
Returns the fluid state atpos.- Specified by:
getFluidStatein interfaceBlockView- Returns:
- the fluid state at
pos - Mappings:
Namespace Name Mixin selector intermediary method_8316Lnet/minecraft/class_1922;method_8316(Lnet/minecraft/class_2338;)Lnet/minecraft/class_3610;official b_Lclq;b_(Lgu;)Ldxb;named getFluidStateLnet/minecraft/world/BlockView;getFluidState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/fluid/FluidState;
-
isDay
public boolean isDay()- Mappings:
Namespace Name Mixin selector intermediary method_8530Lnet/minecraft/class_1937;method_8530()Zofficial MLcmk;M()Znamed isDayLnet/minecraft/world/World;isDay()Z
-
isNight
public boolean isNight()- Mappings:
Namespace Name Mixin selector intermediary method_23886Lnet/minecraft/class_1937;method_23886()Zofficial NLcmk;N()Znamed isNightLnet/minecraft/world/World;isNight()Z
-
playSound
public void playSound(@Nullable @Nullable Entity except, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) - Mappings:
Namespace Name Mixin selector intermediary method_45445Lnet/minecraft/class_1937;method_45445(Lnet/minecraft/class_1297;Lnet/minecraft/class_2338;Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)Vofficial aLcmk;a(Lbfh;Lgu;Lamg;Lami;FF)Vnamed playSoundLnet/minecraft/world/World;playSound(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FF)V
-
playSound
public void playSound(@Nullable @Nullable PlayerEntity except, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) - Specified by:
playSoundin interfaceWorldAccess- Mappings:
Namespace Name Mixin selector intermediary method_8396Lnet/minecraft/class_1936;method_8396(Lnet/minecraft/class_1657;Lnet/minecraft/class_2338;Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)Vofficial aLcml;a(Lbym;Lgu;Lamg;Lami;FF)Vnamed playSoundLnet/minecraft/world/WorldAccess;playSound(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FF)V
-
playSound
public abstract void playSound(@Nullable @Nullable PlayerEntity except, double x, double y, double z, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) - Parameters:
except- the player that should not receive the sound, ornull- Mappings:
Namespace Name Mixin selector intermediary method_8465Lnet/minecraft/class_1937;method_8465(Lnet/minecraft/class_1657;DDDLnet/minecraft/class_6880;Lnet/minecraft/class_3419;FFJ)Vofficial aLcmk;a(Lbym;DDDLhe;Lami;FFJ)Vnamed playSoundLnet/minecraft/world/World;playSound(Lnet/minecraft/entity/player/PlayerEntity;DDDLnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/sound/SoundCategory;FFJ)V
-
playSound
public void playSound(@Nullable @Nullable PlayerEntity except, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch, long seed) - Mappings:
Namespace Name Mixin selector intermediary method_47967Lnet/minecraft/class_1937;method_47967(Lnet/minecraft/class_1657;DDDLnet/minecraft/class_3414;Lnet/minecraft/class_3419;FFJ)Vofficial aLcmk;a(Lbym;DDDLamg;Lami;FFJ)Vnamed playSoundLnet/minecraft/world/World;playSound(Lnet/minecraft/entity/player/PlayerEntity;DDDLnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FFJ)V
-
playSoundFromEntity
public abstract void playSoundFromEntity(@Nullable @Nullable PlayerEntity except, Entity entity, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) - Parameters:
except- the player that should not receive the sound, ornull- Mappings:
Namespace Name Mixin selector intermediary method_8449Lnet/minecraft/class_1937;method_8449(Lnet/minecraft/class_1657;Lnet/minecraft/class_1297;Lnet/minecraft/class_6880;Lnet/minecraft/class_3419;FFJ)Vofficial aLcmk;a(Lbym;Lbfh;Lhe;Lami;FFJ)Vnamed playSoundFromEntityLnet/minecraft/world/World;playSoundFromEntity(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/Entity;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/sound/SoundCategory;FFJ)V
-
playSound
public void playSound(@Nullable @Nullable PlayerEntity except, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch) - Mappings:
Namespace Name Mixin selector intermediary method_43128Lnet/minecraft/class_1937;method_43128(Lnet/minecraft/class_1657;DDDLnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)Vofficial aLcmk;a(Lbym;DDDLamg;Lami;FF)Vnamed playSoundLnet/minecraft/world/World;playSound(Lnet/minecraft/entity/player/PlayerEntity;DDDLnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FF)V
-
playSoundFromEntity
public void playSoundFromEntity(@Nullable @Nullable PlayerEntity except, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch) - Mappings:
Namespace Name Mixin selector intermediary method_43129Lnet/minecraft/class_1937;method_43129(Lnet/minecraft/class_1657;Lnet/minecraft/class_1297;Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)Vofficial aLcmk;a(Lbym;Lbfh;Lamg;Lami;FF)Vnamed playSoundFromEntityLnet/minecraft/world/World;playSoundFromEntity(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/Entity;Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FF)V
-
playSoundAtBlockCenter
public void playSoundAtBlockCenter(BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch, boolean useDistance) - Mappings:
Namespace Name Mixin selector intermediary method_45446Lnet/minecraft/class_1937;method_45446(Lnet/minecraft/class_2338;Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FFZ)Vofficial aLcmk;a(Lgu;Lamg;Lami;FFZ)Vnamed playSoundAtBlockCenterLnet/minecraft/world/World;playSoundAtBlockCenter(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FFZ)V
-
playSound
public void playSound(double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch, boolean useDistance) - Mappings:
Namespace Name Mixin selector intermediary method_8486Lnet/minecraft/class_1937;method_8486(DDDLnet/minecraft/class_3414;Lnet/minecraft/class_3419;FFZ)Vofficial aLcmk;a(DDDLamg;Lami;FFZ)Vnamed playSoundLnet/minecraft/world/World;playSound(DDDLnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FFZ)V
-
addParticle
public void addParticle(ParticleEffect parameters, double x, double y, double z, double velocityX, double velocityY, double velocityZ) - Specified by:
addParticlein interfaceWorldAccess- Mappings:
Namespace Name Mixin selector intermediary method_8406Lnet/minecraft/class_1936;method_8406(Lnet/minecraft/class_2394;DDDDDD)Vofficial aLcml;a(Lit;DDDDDD)Vnamed addParticleLnet/minecraft/world/WorldAccess;addParticle(Lnet/minecraft/particle/ParticleEffect;DDDDDD)V
-
addParticle
public void addParticle(ParticleEffect parameters, boolean alwaysSpawn, double x, double y, double z, double velocityX, double velocityY, double velocityZ) - Mappings:
Namespace Name Mixin selector intermediary method_8466Lnet/minecraft/class_1937;method_8466(Lnet/minecraft/class_2394;ZDDDDDD)Vofficial aLcmk;a(Lit;ZDDDDDD)Vnamed addParticleLnet/minecraft/world/World;addParticle(Lnet/minecraft/particle/ParticleEffect;ZDDDDDD)V
-
addImportantParticle
public void addImportantParticle(ParticleEffect parameters, double x, double y, double z, double velocityX, double velocityY, double velocityZ) - Mappings:
Namespace Name Mixin selector intermediary method_8494Lnet/minecraft/class_1937;method_8494(Lnet/minecraft/class_2394;DDDDDD)Vofficial bLcmk;b(Lit;DDDDDD)Vnamed addImportantParticleLnet/minecraft/world/World;addImportantParticle(Lnet/minecraft/particle/ParticleEffect;DDDDDD)V
-
addImportantParticle
public void addImportantParticle(ParticleEffect parameters, boolean alwaysSpawn, double x, double y, double z, double velocityX, double velocityY, double velocityZ) - Mappings:
Namespace Name Mixin selector intermediary method_17452Lnet/minecraft/class_1937;method_17452(Lnet/minecraft/class_2394;ZDDDDDD)Vofficial bLcmk;b(Lit;ZDDDDDD)Vnamed addImportantParticleLnet/minecraft/world/World;addImportantParticle(Lnet/minecraft/particle/ParticleEffect;ZDDDDDD)V
-
getSkyAngleRadians
public float getSkyAngleRadians(float tickDelta) - Mappings:
Namespace Name Mixin selector intermediary method_8442Lnet/minecraft/class_1937;method_8442(F)Fofficial aLcmk;a(F)Fnamed getSkyAngleRadiansLnet/minecraft/world/World;getSkyAngleRadians(F)F
-
addBlockEntityTicker
- Mappings:
Namespace Name Mixin selector intermediary method_31594Lnet/minecraft/class_1937;method_31594(Lnet/minecraft/class_5562;)Vofficial aLcmk;a(Ldba;)Vnamed addBlockEntityTickerLnet/minecraft/world/World;addBlockEntityTicker(Lnet/minecraft/world/chunk/BlockEntityTickInvoker;)V
-
tickBlockEntities
protected void tickBlockEntities()- Mappings:
Namespace Name Mixin selector intermediary method_18471Lnet/minecraft/class_1937;method_18471()Vofficial OLcmk;O()Vnamed tickBlockEntitiesLnet/minecraft/world/World;tickBlockEntities()V
-
tickEntity
- Mappings:
Namespace Name Mixin selector intermediary method_18472Lnet/minecraft/class_1937;method_18472(Ljava/util/function/Consumer;Lnet/minecraft/class_1297;)Vofficial aLcmk;a(Ljava/util/function/Consumer;Lbfh;)Vnamed tickEntityLnet/minecraft/world/World;tickEntity(Ljava/util/function/Consumer;Lnet/minecraft/entity/Entity;)V
-
shouldUpdatePostDeath
- Mappings:
Namespace Name Mixin selector intermediary method_38989Lnet/minecraft/class_1937;method_38989(Lnet/minecraft/class_1297;)Zofficial hLcmk;h(Lbfh;)Znamed shouldUpdatePostDeathLnet/minecraft/world/World;shouldUpdatePostDeath(Lnet/minecraft/entity/Entity;)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 intermediary method_39425Lnet/minecraft/class_1937;method_39425(J)Zofficial aLcmk;a(J)Znamed shouldTickBlocksInChunkLnet/minecraft/world/World;shouldTickBlocksInChunk(J)Z
-
shouldTickBlockPos
- Mappings:
Namespace Name Mixin selector intermediary method_41411Lnet/minecraft/class_1937;method_41411(Lnet/minecraft/class_2338;)Zofficial mLcmk;m(Lgu;)Znamed shouldTickBlockPosLnet/minecraft/world/World;shouldTickBlockPos(Lnet/minecraft/util/math/BlockPos;)Z
-
createExplosion
public Explosion 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 intermediary method_8437Lnet/minecraft/class_1937;method_8437(Lnet/minecraft/class_1297;DDDFLnet/minecraft/class_1937$class_7867;)Lnet/minecraft/class_1927;official aLcmk;a(Lbfh;DDDFLcmk$a;)Lcmc;named createExplosionLnet/minecraft/world/World;createExplosion(Lnet/minecraft/entity/Entity;DDDFLnet/minecraft/world/World$ExplosionSourceType;)Lnet/minecraft/world/explosion/Explosion;
-
createExplosion
public Explosion 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 intermediary method_8537Lnet/minecraft/class_1937;method_8537(Lnet/minecraft/class_1297;DDDFZLnet/minecraft/class_1937$class_7867;)Lnet/minecraft/class_1927;official aLcmk;a(Lbfh;DDDFZLcmk$a;)Lcmc;named createExplosionLnet/minecraft/world/World;createExplosion(Lnet/minecraft/entity/Entity;DDDFZLnet/minecraft/world/World$ExplosionSourceType;)Lnet/minecraft/world/explosion/Explosion;
-
createExplosion
public Explosion 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 intermediary 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;)Lnet/minecraft/class_1927;official aLcmk;a(Lbfh;Lbem;Lcmd;Leea;FZLcmk$a;)Lcmc;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;)Lnet/minecraft/world/explosion/Explosion;
-
createExplosion
public Explosion 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) 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 intermediary 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_1927;official aLcmk;a(Lbfh;Lbem;Lcmd;DDDFZLcmk$a;)Lcmc;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/world/explosion/Explosion;
-
createExplosion
public Explosion 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, boolean particles) - Mappings:
Namespace Name Mixin selector intermediary method_46668Lnet/minecraft/class_1937;method_46668(Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;Lnet/minecraft/class_5362;DDDFZLnet/minecraft/class_1937$class_7867;Z)Lnet/minecraft/class_1927;official aLcmk;a(Lbfh;Lbem;Lcmd;DDDFZLcmk$a;Z)Lcmc;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;Z)Lnet/minecraft/world/explosion/Explosion;
-
getDestructionType
private Explosion.DestructionType getDestructionType(GameRules.Key<GameRules.BooleanRule> gameRuleKey) - Mappings:
Namespace Name Mixin selector intermediary method_46669Lnet/minecraft/class_1937;method_46669(Lnet/minecraft/class_1928$class_4313;)Lnet/minecraft/class_1927$class_4179;official aLcmk;a(Lcmg$e;)Lcmc$a;named getDestructionTypeLnet/minecraft/world/World;getDestructionType(Lnet/minecraft/world/GameRules$Key;)Lnet/minecraft/world/explosion/Explosion$DestructionType;
-
asString
- Mappings:
Namespace Name Mixin selector intermediary method_31419Lnet/minecraft/class_1937;method_31419()Ljava/lang/String;official FLcmk;F()Ljava/lang/String;named asStringLnet/minecraft/world/World;asString()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 intermediary method_8321Lnet/minecraft/class_1922;method_8321(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;official c_Lclq;c_(Lgu;)Lczk;named getBlockEntityLnet/minecraft/world/BlockView;getBlockEntity(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;
-
addBlockEntity
- Mappings:
Namespace Name Mixin selector intermediary method_8438Lnet/minecraft/class_1937;method_8438(Lnet/minecraft/class_2586;)Vofficial aLcmk;a(Lczk;)Vnamed addBlockEntityLnet/minecraft/world/World;addBlockEntity(Lnet/minecraft/block/entity/BlockEntity;)V
-
removeBlockEntity
- Mappings:
Namespace Name Mixin selector intermediary method_8544Lnet/minecraft/class_1937;method_8544(Lnet/minecraft/class_2338;)Vofficial nLcmk;n(Lgu;)Vnamed removeBlockEntityLnet/minecraft/world/World;removeBlockEntity(Lnet/minecraft/util/math/BlockPos;)V
-
canSetBlock
- Mappings:
Namespace Name Mixin selector intermediary method_8477Lnet/minecraft/class_1937;method_8477(Lnet/minecraft/class_2338;)Zofficial oLcmk;o(Lgu;)Znamed canSetBlockLnet/minecraft/world/World;canSetBlock(Lnet/minecraft/util/math/BlockPos;)Z
-
isDirectionSolid
- Mappings:
Namespace Name Mixin selector intermediary method_24368Lnet/minecraft/class_1937;method_24368(Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;Lnet/minecraft/class_2350;)Zofficial aLcmk;a(Lgu;Lbfh;Lha;)Znamed isDirectionSolidLnet/minecraft/world/World;isDirectionSolid(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Direction;)Z
-
isTopSolid
- Mappings:
Namespace Name Mixin selector intermediary method_8515Lnet/minecraft/class_1937;method_8515(Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)Zofficial aLcmk;a(Lgu;Lbfh;)Znamed isTopSolidLnet/minecraft/world/World;isTopSolid(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)Z
-
calculateAmbientDarkness
public void calculateAmbientDarkness()- Mappings:
Namespace Name Mixin selector intermediary method_8533Lnet/minecraft/class_1937;method_8533()Vofficial PLcmk;P()Vnamed calculateAmbientDarknessLnet/minecraft/world/World;calculateAmbientDarkness()V
-
setMobSpawnOptions
public void setMobSpawnOptions(boolean spawnMonsters, boolean spawnAnimals) Sets whether monsters or animals can spawn.- Mappings:
Namespace Name Mixin selector intermediary method_8424Lnet/minecraft/class_1937;method_8424(ZZ)Vofficial bLcmk;b(ZZ)Vnamed setMobSpawnOptionsLnet/minecraft/world/World;setMobSpawnOptions(ZZ)V
-
getSpawnPos
- Mappings:
Namespace Name Mixin selector intermediary method_43126Lnet/minecraft/class_1937;method_43126()Lnet/minecraft/class_2338;official QLcmk;Q()Lgu;named getSpawnPosLnet/minecraft/world/World;getSpawnPos()Lnet/minecraft/util/math/BlockPos;
-
getSpawnAngle
public float getSpawnAngle()- Mappings:
Namespace Name Mixin selector intermediary method_43127Lnet/minecraft/class_1937;method_43127()Fofficial RLcmk;R()Fnamed getSpawnAngleLnet/minecraft/world/World;getSpawnAngle()F
-
initWeatherGradients
protected void initWeatherGradients()- Mappings:
Namespace Name Mixin selector intermediary method_8543Lnet/minecraft/class_1937;method_8543()Vofficial SLcmk;S()Vnamed initWeatherGradientsLnet/minecraft/world/World;initWeatherGradients()V
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
getChunkAsView
- Specified by:
getChunkAsViewin interfaceCollisionView- Specified by:
getChunkAsViewin interfaceWorldView- Mappings:
Namespace Name Mixin selector intermediary method_22338Lnet/minecraft/class_1941;method_22338(II)Lnet/minecraft/class_1922;official cLclu;c(II)Lclq;named getChunkAsViewLnet/minecraft/world/CollisionView;getChunkAsView(II)Lnet/minecraft/world/BlockView;
-
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 intermediary method_8333Lnet/minecraft/class_1924;method_8333(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/List;official aLcmb;a(Lbfh;Ledv;Ljava/util/function/Predicate;)Ljava/util/List;named getOtherEntitiesLnet/minecraft/world/EntityView;getOtherEntities(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;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 intermediary method_18023Lnet/minecraft/class_1924;method_18023(Lnet/minecraft/class_5575;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/List;official aLcmb;a(Ldfw;Ledv;Ljava/util/function/Predicate;)Ljava/util/List;named getEntitiesByTypeLnet/minecraft/world/EntityView;getEntitiesByType(Lnet/minecraft/util/TypeFilter;Lnet/minecraft/util/math/Box;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 intermediary method_47574Lnet/minecraft/class_1937;method_47574(Lnet/minecraft/class_5575;Lnet/minecraft/class_238;Ljava/util/function/Predicate;Ljava/util/List;)Vofficial aLcmk;a(Ldfw;Ledv;Ljava/util/function/Predicate;Ljava/util/List;)Vnamed collectEntitiesByTypeLnet/minecraft/world/World;collectEntitiesByType(Lnet/minecraft/util/TypeFilter;Lnet/minecraft/util/math/Box;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 intermediary method_47575Lnet/minecraft/class_1937;method_47575(Lnet/minecraft/class_5575;Lnet/minecraft/class_238;Ljava/util/function/Predicate;Ljava/util/List;I)Vofficial aLcmk;a(Ldfw;Ledv;Ljava/util/function/Predicate;Ljava/util/List;I)Vnamed collectEntitiesByTypeLnet/minecraft/world/World;collectEntitiesByType(Lnet/minecraft/util/TypeFilter;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;Ljava/util/List;I)V
-
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 intermediary method_8469Lnet/minecraft/class_1937;method_8469(I)Lnet/minecraft/class_1297;official aLcmk;a(I)Lbfh;named getEntityByIdLnet/minecraft/world/World;getEntityById(I)Lnet/minecraft/entity/Entity;
-
markDirty
- Mappings:
Namespace Name Mixin selector intermediary method_8524Lnet/minecraft/class_1937;method_8524(Lnet/minecraft/class_2338;)Vofficial pLcmk;p(Lgu;)Vnamed markDirtyLnet/minecraft/world/World;markDirty(Lnet/minecraft/util/math/BlockPos;)V
-
getSeaLevel
public int getSeaLevel()- Specified by:
getSeaLevelin interfaceWorldView- Mappings:
Namespace Name Mixin selector intermediary method_8615Lnet/minecraft/class_4538;method_8615()Iofficial s_Lcmn;s_()Inamed getSeaLevelLnet/minecraft/world/WorldView;getSeaLevel()I
-
disconnect
public void disconnect()- Mappings:
Namespace Name Mixin selector intermediary method_8525Lnet/minecraft/class_1937;method_8525()Vofficial TLcmk;T()Vnamed disconnectLnet/minecraft/world/World;disconnect()V
-
getTime
public long getTime()Returns the time.Time is used to track scheduled ticks and cannot be modified or frozen.
- Returns:
- the time
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_8510Lnet/minecraft/class_1937;method_8510()Jofficial ULcmk;U()Jnamed getTimeLnet/minecraft/world/World;getTime()J
-
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 intermediary method_8532Lnet/minecraft/class_1937;method_8532()Jofficial VLcmk;V()Jnamed getTimeOfDayLnet/minecraft/world/World;getTimeOfDay()J
-
canPlayerModifyAt
Returns whetherplayercan modify blocks atpos.- Returns:
- whether
playercan modify blocks atpos - See Also:
- Implementation Note:
- This checks the spawn protection and the world border.
- Mappings:
Namespace Name Mixin selector intermediary method_8505Lnet/minecraft/class_1937;method_8505(Lnet/minecraft/class_1657;Lnet/minecraft/class_2338;)Zofficial aLcmk;a(Lbym;Lgu;)Znamed canPlayerModifyAtLnet/minecraft/world/World;canPlayerModifyAt(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/BlockPos;)Z
-
sendEntityStatus
Sends the entity status to nearby players.- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_8421Lnet/minecraft/class_1937;method_8421(Lnet/minecraft/class_1297;B)Vofficial aLcmk;a(Lbfh;B)Vnamed sendEntityStatusLnet/minecraft/world/World;sendEntityStatus(Lnet/minecraft/entity/Entity;B)V
-
sendEntityDamage
- Mappings:
Namespace Name Mixin selector intermediary method_48760Lnet/minecraft/class_1937;method_48760(Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;)Vofficial aLcmk;a(Lbfh;Lbem;)Vnamed sendEntityDamageLnet/minecraft/world/World;sendEntityDamage(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;)V
-
addSyncedBlockEvent
- Mappings:
Namespace Name Mixin selector intermediary method_8427Lnet/minecraft/class_1937;method_8427(Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;II)Vofficial aLcmk;a(Lgu;Lcpl;II)Vnamed addSyncedBlockEventLnet/minecraft/world/World;addSyncedBlockEvent(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;II)V
-
getLevelProperties
- Specified by:
getLevelPropertiesin interfaceWorldAccess- Mappings:
Namespace Name Mixin selector intermediary method_8401Lnet/minecraft/class_1936;method_8401()Lnet/minecraft/class_5217;official t_Lcml;t_()Ldys;named getLevelPropertiesLnet/minecraft/world/WorldAccess;getLevelProperties()Lnet/minecraft/world/WorldProperties;
-
getGameRules
- Mappings:
Namespace Name Mixin selector intermediary method_8450Lnet/minecraft/class_1937;method_8450()Lnet/minecraft/class_1928;official WLcmk;W()Lcmg;named getGameRulesLnet/minecraft/world/World;getGameRules()Lnet/minecraft/world/GameRules;
-
getThunderGradient
public float getThunderGradient(float delta) - Mappings:
Namespace Name Mixin selector intermediary method_8478Lnet/minecraft/class_1937;method_8478(F)Fofficial bLcmk;b(F)Fnamed getThunderGradientLnet/minecraft/world/World;getThunderGradient(F)F
-
setThunderGradient
public void setThunderGradient(float thunderGradient) - Mappings:
Namespace Name Mixin selector intermediary method_8496Lnet/minecraft/class_1937;method_8496(F)Vofficial cLcmk;c(F)Vnamed setThunderGradientLnet/minecraft/world/World;setThunderGradient(F)V
-
getRainGradient
public float getRainGradient(float delta) - Mappings:
Namespace Name Mixin selector intermediary method_8430Lnet/minecraft/class_1937;method_8430(F)Fofficial dLcmk;d(F)Fnamed getRainGradientLnet/minecraft/world/World;getRainGradient(F)F
-
setRainGradient
public void setRainGradient(float rainGradient) - Mappings:
Namespace Name Mixin selector intermediary method_8519Lnet/minecraft/class_1937;method_8519(F)Vofficial eLcmk;e(F)Vnamed setRainGradientLnet/minecraft/world/World;setRainGradient(F)V
-
isThundering
public boolean isThundering()- Mappings:
Namespace Name Mixin selector intermediary method_8546Lnet/minecraft/class_1937;method_8546()Zofficial XLcmk;X()Znamed isThunderingLnet/minecraft/world/World;isThundering()Z
-
isRaining
public boolean isRaining()Returns whether it is raining.- Returns:
- whether it is raining
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_8419Lnet/minecraft/class_1937;method_8419()Zofficial YLcmk;Y()Znamed isRainingLnet/minecraft/world/World;isRaining()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 intermediary method_8520Lnet/minecraft/class_1937;method_8520(Lnet/minecraft/class_2338;)Zofficial qLcmk;q(Lgu;)Znamed hasRainLnet/minecraft/world/World;hasRain(Lnet/minecraft/util/math/BlockPos;)Z
-
getMapState
- Mappings:
Namespace Name Mixin selector intermediary method_17891Lnet/minecraft/class_1937;method_17891(Ljava/lang/String;)Lnet/minecraft/class_22;official aLcmk;a(Ljava/lang/String;)Ldyl;named getMapStateLnet/minecraft/world/World;getMapState(Ljava/lang/String;)Lnet/minecraft/item/map/MapState;
-
putMapState
- Mappings:
Namespace Name Mixin selector intermediary method_17890Lnet/minecraft/class_1937;method_17890(Ljava/lang/String;Lnet/minecraft/class_22;)Vofficial aLcmk;a(Ljava/lang/String;Ldyl;)Vnamed putMapStateLnet/minecraft/world/World;putMapState(Ljava/lang/String;Lnet/minecraft/item/map/MapState;)V
-
getNextMapId
public abstract int getNextMapId()- Mappings:
Namespace Name Mixin selector intermediary method_17889Lnet/minecraft/class_1937;method_17889()Iofficial tLcmk;t()Inamed getNextMapIdLnet/minecraft/world/World;getNextMapId()I
-
syncGlobalEvent
- Mappings:
Namespace Name Mixin selector intermediary method_8474Lnet/minecraft/class_1937;method_8474(ILnet/minecraft/class_2338;I)Vofficial bLcmk;b(ILgu;I)Vnamed syncGlobalEventLnet/minecraft/world/World;syncGlobalEvent(ILnet/minecraft/util/math/BlockPos;I)V
-
addDetailsToCrashReport
- Mappings:
Namespace Name Mixin selector intermediary method_8538Lnet/minecraft/class_1937;method_8538(Lnet/minecraft/class_128;)Lnet/minecraft/class_129;official aLcmk;a(Lo;)Lp;named addDetailsToCrashReportLnet/minecraft/world/World;addDetailsToCrashReport(Lnet/minecraft/util/crash/CrashReport;)Lnet/minecraft/util/crash/CrashReportSection;
-
setBlockBreakingInfo
- Mappings:
Namespace Name Mixin selector intermediary method_8517Lnet/minecraft/class_1937;method_8517(ILnet/minecraft/class_2338;I)Vofficial aLcmk;a(ILgu;I)Vnamed setBlockBreakingInfoLnet/minecraft/world/World;setBlockBreakingInfo(ILnet/minecraft/util/math/BlockPos;I)V
-
addFireworkParticle
public void addFireworkParticle(double x, double y, double z, double velocityX, double velocityY, double velocityZ, @Nullable @Nullable NbtCompound nbt) - Mappings:
Namespace Name Mixin selector intermediary method_8547Lnet/minecraft/class_1937;method_8547(DDDDDDLnet/minecraft/class_2487;)Vofficial aLcmk;a(DDDDDDLqr;)Vnamed addFireworkParticleLnet/minecraft/world/World;addFireworkParticle(DDDDDDLnet/minecraft/nbt/NbtCompound;)V
-
getScoreboard
- Mappings:
Namespace Name Mixin selector intermediary method_8428Lnet/minecraft/class_1937;method_8428()Lnet/minecraft/class_269;official HLcmk;H()Leey;named getScoreboardLnet/minecraft/world/World;getScoreboard()Lnet/minecraft/scoreboard/Scoreboard;
-
updateComparators
- Mappings:
Namespace Name Mixin selector intermediary method_8455Lnet/minecraft/class_1937;method_8455(Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;)Vofficial cLcmk;c(Lgu;Lcpl;)Vnamed updateComparatorsLnet/minecraft/world/World;updateComparators(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;)V
-
getLocalDifficulty
- Specified by:
getLocalDifficultyin interfaceWorldAccess- Mappings:
Namespace Name Mixin selector intermediary method_8404Lnet/minecraft/class_1936;method_8404(Lnet/minecraft/class_2338;)Lnet/minecraft/class_1266;official d_Lcml;d_(Lgu;)Lbdu;named getLocalDifficultyLnet/minecraft/world/WorldAccess;getLocalDifficulty(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/LocalDifficulty;
-
getAmbientDarkness
public int getAmbientDarkness()- Specified by:
getAmbientDarknessin interfaceWorldView- Mappings:
Namespace Name Mixin selector intermediary method_8594Lnet/minecraft/class_4538;method_8594()Iofficial u_Lcmn;u_()Inamed getAmbientDarknessLnet/minecraft/world/WorldView;getAmbientDarkness()I
-
setLightningTicksLeft
public void setLightningTicksLeft(int lightningTicksLeft) - Mappings:
Namespace Name Mixin selector intermediary method_8509Lnet/minecraft/class_1937;method_8509(I)Vofficial cLcmk;c(I)Vnamed setLightningTicksLeftLnet/minecraft/world/World;setLightningTicksLeft(I)V
-
getWorldBorder
- Specified by:
getWorldBorderin interfaceCollisionView- Mappings:
Namespace Name Mixin selector intermediary method_8621Lnet/minecraft/class_1941;method_8621()Lnet/minecraft/class_2784;official v_Lclu;v_()Lddp;named getWorldBorderLnet/minecraft/world/CollisionView;getWorldBorder()Lnet/minecraft/world/border/WorldBorder;
-
sendPacket
- Mappings:
Namespace Name Mixin selector intermediary method_8522Lnet/minecraft/class_1937;method_8522(Lnet/minecraft/class_2596;)Vofficial aLcmk;a(Luo;)Vnamed sendPacketLnet/minecraft/world/World;sendPacket(Lnet/minecraft/network/packet/Packet;)V
-
getDimension
- Specified by:
getDimensionin interfaceWorldView- Mappings:
Namespace Name Mixin selector intermediary method_8597Lnet/minecraft/class_4538;method_8597()Lnet/minecraft/class_2874;official w_Lcmn;w_()Ldfh;named getDimensionLnet/minecraft/world/WorldView;getDimension()Lnet/minecraft/world/dimension/DimensionType;
-
getDimensionKey
- Mappings:
Namespace Name Mixin selector intermediary method_44013Lnet/minecraft/class_1937;method_44013()Lnet/minecraft/class_5321;official ZLcmk;Z()Lacp;named getDimensionKeyLnet/minecraft/world/World;getDimensionKey()Lnet/minecraft/registry/RegistryKey;
-
getDimensionEntry
- Mappings:
Namespace Name Mixin selector intermediary method_40134Lnet/minecraft/class_1937;method_40134()Lnet/minecraft/class_6880;official aaLcmk;aa()Lhe;named getDimensionEntryLnet/minecraft/world/World;getDimensionEntry()Lnet/minecraft/registry/entry/RegistryEntry;
-
getRegistryKey
- Mappings:
Namespace Name Mixin selector intermediary method_27983Lnet/minecraft/class_1937;method_27983()Lnet/minecraft/class_5321;official abLcmk;ab()Lacp;named getRegistryKeyLnet/minecraft/world/World;getRegistryKey()Lnet/minecraft/registry/RegistryKey;
-
getRandom
- Specified by:
getRandomin interfaceWorldAccess- Mappings:
Namespace Name Mixin selector intermediary method_8409Lnet/minecraft/class_1936;method_8409()Lnet/minecraft/class_5819;official x_Lcml;x_()Lapf;named getRandomLnet/minecraft/world/WorldAccess;getRandom()Lnet/minecraft/util/math/random/Random;
-
testBlockState
- Specified by:
testBlockStatein interfaceTestableWorld- Mappings:
Namespace Name Mixin selector intermediary method_16358Lnet/minecraft/class_3746;method_16358(Lnet/minecraft/class_2338;Ljava/util/function/Predicate;)Zofficial aLcmq;a(Lgu;Ljava/util/function/Predicate;)Znamed testBlockStateLnet/minecraft/world/TestableWorld;testBlockState(Lnet/minecraft/util/math/BlockPos;Ljava/util/function/Predicate;)Z
-
testFluidState
- Specified by:
testFluidStatein interfaceTestableWorld- Mappings:
Namespace Name Mixin selector intermediary method_35237Lnet/minecraft/class_3746;method_35237(Lnet/minecraft/class_2338;Ljava/util/function/Predicate;)Zofficial bLcmq;b(Lgu;Ljava/util/function/Predicate;)Znamed testFluidStateLnet/minecraft/world/TestableWorld;testFluidState(Lnet/minecraft/util/math/BlockPos;Ljava/util/function/Predicate;)Z
-
getRecipeManager
- Mappings:
Namespace Name Mixin selector intermediary method_8433Lnet/minecraft/class_1937;method_8433()Lnet/minecraft/class_1863;official qLcmk;q()Lcjb;named getRecipeManagerLnet/minecraft/world/World;getRecipeManager()Lnet/minecraft/recipe/RecipeManager;
-
getRandomPosInChunk
- Mappings:
Namespace Name Mixin selector intermediary method_8536Lnet/minecraft/class_1937;method_8536(IIII)Lnet/minecraft/class_2338;official aLcmk;a(IIII)Lgu;named getRandomPosInChunkLnet/minecraft/world/World;getRandomPosInChunk(IIII)Lnet/minecraft/util/math/BlockPos;
-
isSavingDisabled
public boolean isSavingDisabled()- Mappings:
Namespace Name Mixin selector intermediary method_8458Lnet/minecraft/class_1937;method_8458()Zofficial rLcmk;r()Znamed isSavingDisabledLnet/minecraft/world/World;isSavingDisabled()Z
-
getProfiler
- Mappings:
Namespace Name Mixin selector intermediary method_16107Lnet/minecraft/class_1937;method_16107()Lnet/minecraft/class_3695;official acLcmk;ac()Lbam;named getProfilerLnet/minecraft/world/World;getProfiler()Lnet/minecraft/util/profiler/Profiler;
-
getProfilerSupplier
- Mappings:
Namespace Name Mixin selector intermediary method_24367Lnet/minecraft/class_1937;method_24367()Ljava/util/function/Supplier;official adLcmk;ad()Ljava/util/function/Supplier;named getProfilerSupplierLnet/minecraft/world/World;getProfilerSupplier()Ljava/util/function/Supplier;
-
getBiomeAccess
- Specified by:
getBiomeAccessin interfaceWorldView- Mappings:
Namespace Name Mixin selector intermediary method_22385Lnet/minecraft/class_4538;method_22385()Lnet/minecraft/class_4543;official y_Lcmn;y_()Lcnk;named getBiomeAccessLnet/minecraft/world/WorldView;getBiomeAccess()Lnet/minecraft/world/biome/source/BiomeAccess;
-
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 intermediary method_27982Lnet/minecraft/class_1937;method_27982()Zofficial aeLcmk;ae()Znamed isDebugWorldLnet/minecraft/world/World;isDebugWorld()Z
-
getEntityLookup
- Mappings:
Namespace Name Mixin selector intermediary method_31592Lnet/minecraft/class_1937;method_31592()Lnet/minecraft/class_5577;official ELcmk;E()Ldfy;named getEntityLookupLnet/minecraft/world/World;getEntityLookup()Lnet/minecraft/world/entity/EntityLookup;
-
getTickOrder
public long getTickOrder()- Specified by:
getTickOrderin interfaceWorldAccess- Mappings:
Namespace Name Mixin selector intermediary method_39224Lnet/minecraft/class_1936;method_39224()Jofficial z_Lcml;z_()Jnamed getTickOrderLnet/minecraft/world/WorldAccess;getTickOrder()J
-
getRegistryManager
- Specified by:
getRegistryManagerin interfaceWorldView- Mappings:
Namespace Name Mixin selector intermediary method_30349Lnet/minecraft/class_4538;method_30349()Lnet/minecraft/class_5455;official A_Lcmn;A_()Lhs;named getRegistryManagerLnet/minecraft/world/WorldView;getRegistryManager()Lnet/minecraft/registry/DynamicRegistryManager;
-
getDamageSources
- Mappings:
Namespace Name Mixin selector intermediary method_48963Lnet/minecraft/class_1937;method_48963()Lnet/minecraft/class_8109;official afLcmk;af()Lben;named getDamageSourcesLnet/minecraft/world/World;getDamageSources()Lnet/minecraft/entity/damage/DamageSources;
-