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 named net/minecraft/world/World
intermediary net/minecraft/class_1937
official dcg
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private final BiomeAccess
protected final List
<BlockEntityTickInvoker> private final WorldBorder
static final com.mojang.serialization.Codec
<RegistryKey<World>> private final DamageSources
private final boolean
private final RegistryEntry
<DimensionType> static final RegistryKey
<World> static final int
static final int
static final int
static final int
final boolean
private boolean
protected int
protected final int
static final int
static final int
static final int
protected final NeighborUpdater
static final RegistryKey
<World> static final RegistryKey
<World> private final List
<BlockEntityTickInvoker> protected final MutableWorldProperties
protected float
protected float
final Random
private final RegistryKey
<World> private final DynamicRegistryManager
private final Thread
private final Random
Deprecated.protected float
protected float
private long
Fields inherited from interface net.minecraft.world.RedstoneView
DIRECTIONS
-
Constructor Summary
ModifierConstructorDescriptionprotected
World
(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 TypeMethodDescriptionvoid
addBlockBreakParticles
(BlockPos pos, BlockState state) void
addBlockEntity
(BlockEntity blockEntity) void
addDetailsToCrashReport
(CrashReport report) void
addFireworkParticle
(double x, double y, double z, double velocityX, double velocityY, double velocityZ, List<FireworkExplosionComponent> explosions) void
addImportantParticle
(ParticleEffect parameters, boolean alwaysSpawn, double x, double y, double z, double velocityX, double velocityY, double velocityZ) void
addImportantParticle
(ParticleEffect parameters, double x, double y, double z, double velocityX, double velocityY, double velocityZ) void
addParticle
(ParticleEffect parameters, boolean alwaysSpawn, double x, double y, double z, double velocityX, double velocityY, double velocityZ) void
addParticle
(ParticleEffect parameters, double x, double y, double z, double velocityX, double velocityY, double velocityZ) void
addSyncedBlockEvent
(BlockPos pos, Block block, int type, int data) abstract String
asString()
boolean
breakBlock
(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.void
boolean
canPlayerModifyAt
(PlayerEntity player, BlockPos pos) Returns whetherplayer
can modify blocks atpos
.boolean
canSetBlock
(BlockPos pos) void
close()
<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) 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, ParticleEffect particle, ParticleEffect emitterParticle, RegistryEntry<SoundEvent> soundEvent) createExplosion
(@Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, World.ExplosionSourceType explosionSourceType, ParticleEffect particle, ParticleEffect emitterParticle, RegistryEntry<SoundEvent> soundEvent) Creates an explosion.createExplosion
(@Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, Vec3d pos, float power, boolean createFire, World.ExplosionSourceType explosionSourceType) Creates an explosion.void
int
getBlockEntity
(BlockPos pos) Returns the block entity atpos
, ornull
if there is none.getBlockState
(BlockPos pos) Returns the block state atpos
.abstract BrewingRecipeRegistry
getChunk
(int int2, int int3) Returns the chunk with positionchunkX
andchunkZ
.getChunk
(int chunkX, int chunkZ, ChunkStatus leastStatus, boolean create) getChunkAsView
(int chunkX, int chunkZ) private Explosion.DestructionType
getDestructionType
(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, ornull
if none was found.protected abstract EntityLookup
<Entity> getFluidState
(BlockPos pos) Returns the fluid state atpos
.abstract MapIdComponent
Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.float
getRainGradient
(float delta) getRandomPosInChunk
(int x, int y, int z, int int2) abstract RecipeManager
abstract Scoreboard
int
float
getSkyAngleRadians
(float tickDelta) float
float
getThunderGradient
(float delta) abstract TickManager
long
long
getTime()
Returns the time.long
Returns the time of day.int
getTopY
(Heightmap.Type heightmap, int x, int z) Returns the Y coordinate of the topmost block at the coordinatesx
andz
usingheightmap
.getWorldChunk
(BlockPos pos) Returns the chunk that containspos
.boolean
Returns whether it can rain atpos
.protected void
boolean
isClient()
Checks if this world view is on the logical client.boolean
isDay()
final boolean
Checks if this world is a debug world.boolean
isDirectionSolid
(BlockPos pos, Entity entity, Direction direction) boolean
isInBuildLimit
(BlockPos pos) Returns whether the position is inside the build limit.private static boolean
isInvalidVertically
(int y) boolean
isNight()
boolean
Returns whether it is raining.boolean
boolean
boolean
isTopSolid
(BlockPos pos, Entity entity) static boolean
Returns whether the position is valid.private static boolean
void
void
onBlockChanged
(BlockPos pos, BlockState oldBlock, BlockState newBlock) Called when a block state changed.void
playSound
(double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch, boolean useDistance) void
playSound
(@Nullable Entity source, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) void
playSound
(@Nullable PlayerEntity source, double x, double y, double z, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch) abstract void
playSound
(@Nullable PlayerEntity source, double x, double y, double z, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) void
playSound
(@Nullable PlayerEntity source, double x, double y, double z, SoundEvent sound, SoundCategory category) void
playSound
(@Nullable PlayerEntity source, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch) void
playSound
(@Nullable PlayerEntity source, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch, long seed) void
playSound
(@Nullable PlayerEntity source, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) void
playSoundAtBlockCenter
(BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch, boolean useDistance) void
playSoundFromEntity
(Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch) abstract void
playSoundFromEntity
(@Nullable PlayerEntity source, Entity entity, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) void
playSoundFromEntity
(@Nullable PlayerEntity source, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch) abstract void
putMapState
(MapIdComponent id, MapState state) boolean
removeBlock
(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.void
void
replaceWithStateForNeighborUpdate
(Direction direction, BlockState neighborState, BlockPos pos, BlockPos neighborPos, int flags, int maxUpdateDepth) void
scheduleBlockRerenderIfNeeded
(BlockPos pos, BlockState old, BlockState updated) void
sendEntityDamage
(Entity entity, DamageSource damageSource) void
sendEntityStatus
(Entity entity, byte status) Sends the entity status to nearby players.void
sendPacket
(Packet<?> packet) abstract void
setBlockBreakingInfo
(int entityId, BlockPos pos, int progress) boolean
setBlockState
(BlockPos pos, BlockState state) boolean
setBlockState
(BlockPos pos, BlockState state, int flags) Updates the block state at a position, calling appropriate callbacks.boolean
setBlockState
(BlockPos pos, BlockState state, int flags, int maxUpdateDepth) Updates the block state at a position, calling appropriate callbacks.void
setLightningTicksLeft
(int lightningTicksLeft) void
setMobSpawnOptions
(boolean spawnMonsters, boolean spawnAnimals) Sets whether monsters or animals can spawn.void
setRainGradient
(float rainGradient) void
setThunderGradient
(float thunderGradient) boolean
boolean
shouldTickBlocksInChunk
(long chunkPos) Returns whether the blocks in the specified chunk should get ticked.boolean
shouldUpdatePostDeath
(Entity entity) void
syncGlobalEvent
(int eventId, BlockPos pos, int data) boolean
testBlockState
(BlockPos pos, Predicate<BlockState> state) boolean
testFluidState
(BlockPos pos, Predicate<FluidState> state) protected void
<T extends Entity>
voidtickEntity
(Consumer<T> tickConsumer, T entity) void
updateComparators
(BlockPos pos, Block block) abstract void
updateListeners
(BlockPos pos, BlockState oldState, BlockState newState, int flags) void
updateNeighbor
(BlockState state, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) void
updateNeighbor
(BlockPos pos, Block sourceBlock, BlockPos sourcePos) Triggers a neighbor update originating fromsourcePos
atpos
.void
updateNeighborsAlways
(BlockPos pos, Block sourceBlock) Emits a neighbor update to all 6 neighboring blocks ofpos
.void
updateNeighborsExcept
(BlockPos pos, Block sourceBlock, Direction direction) Emits a neighbor update to neighboring blocks ofpos
, except for the one indirection
direction.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.BlockRenderView
getBaseLightLevel, getBrightness, getLightLevel, isSkyVisible
Methods inherited from interface net.minecraft.world.BlockView
getDismountHeight, getDismountHeight, getLuminance, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlock
Methods inherited from interface net.minecraft.world.CollisionView
canCollide, canPlace, doesNotIntersectEntities, doesNotIntersectEntities, findClosestCollision, findSupportingBlockPos, getBlockCollisions, getCollisions, getEntityCollisions, isBlockSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty
Methods inherited from interface net.minecraft.world.EntityView
getClosestEntity, getClosestEntity, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getEntitiesByClass, getNonSpectatingEntities, getOtherEntities, getPlayerByUuid, getPlayers, getPlayers, getTargets, isPlayerInRange
Methods inherited from interface net.minecraft.world.HeightLimitView
countVerticalSections, getBottomSectionCoord, getSectionIndex, getTopSectionCoord, getTopY, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoord
Methods inherited from interface net.minecraft.world.LunarWorldView
getMoonPhase, getMoonSize, getSkyAngle
Methods inherited from interface net.minecraft.world.ModifiableWorld
breakBlock, breakBlock, spawnEntity
Methods inherited from interface net.minecraft.world.RedstoneView
getEmittedRedstonePower, getEmittedRedstonePower, getReceivedRedstonePower, getReceivedStrongRedstonePower, getStrongRedstonePower, isEmittingRedstonePower, isReceivingRedstonePower
Methods inherited from interface net.minecraft.world.RegistryWorldView
doesNotIntersectEntities, getBlockEntity, getEntityCollisions, getTopPosition
Methods inherited from interface net.minecraft.world.WorldAccess
emitGameEvent, emitGameEvent, emitGameEvent, emitGameEvent, emitGameEvent, getBlockTickScheduler, getChunkManager, getDifficulty, getFluidTickScheduler, getLunarTime, isChunkLoaded, playSound, scheduleBlockTick, scheduleBlockTick, scheduleFluidTick, scheduleFluidTick, syncWorldEvent, syncWorldEvent, updateNeighbors
Methods 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 named CODEC
Lnet/minecraft/world/World;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_25178
Lnet/minecraft/class_1937;field_25178:Lcom/mojang/serialization/Codec;
official g
Ldcg;g:Lcom/mojang/serialization/Codec;
-
OVERWORLD
- Mappings:
Namespace Name Mixin selector named OVERWORLD
Lnet/minecraft/world/World;OVERWORLD:Lnet/minecraft/registry/RegistryKey;
intermediary field_25179
Lnet/minecraft/class_1937;field_25179:Lnet/minecraft/class_5321;
official h
Ldcg;h:Lakj;
-
NETHER
- Mappings:
Namespace Name Mixin selector named NETHER
Lnet/minecraft/world/World;NETHER:Lnet/minecraft/registry/RegistryKey;
intermediary field_25180
Lnet/minecraft/class_1937;field_25180:Lnet/minecraft/class_5321;
official i
Ldcg;i:Lakj;
-
END
- Mappings:
Namespace Name Mixin selector named END
Lnet/minecraft/world/World;END:Lnet/minecraft/registry/RegistryKey;
intermediary field_25181
Lnet/minecraft/class_1937;field_25181:Lnet/minecraft/class_5321;
official j
Ldcg;j:Lakj;
-
HORIZONTAL_LIMIT
public static final int HORIZONTAL_LIMIT- See Also:
- Mappings:
Namespace Name Mixin selector named HORIZONTAL_LIMIT
Lnet/minecraft/world/World;HORIZONTAL_LIMIT:I
intermediary field_30965
Lnet/minecraft/class_1937;field_30965:I
official k
Ldcg;k:I
-
MAX_UPDATE_DEPTH
public static final int MAX_UPDATE_DEPTH- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_UPDATE_DEPTH
Lnet/minecraft/world/World;MAX_UPDATE_DEPTH:I
intermediary field_30966
Lnet/minecraft/class_1937;field_30966:I
official l
Ldcg;l:I
-
field_30967
public static final int field_30967- See Also:
- Mappings:
Namespace Name Mixin selector named field_30967
Lnet/minecraft/world/World;field_30967:I
intermediary field_30967
Lnet/minecraft/class_1937;field_30967:I
official m
Ldcg;m:I
-
field_30968
public static final int field_30968- See Also:
- Mappings:
Namespace Name Mixin selector named field_30968
Lnet/minecraft/world/World;field_30968:I
intermediary field_30968
Lnet/minecraft/class_1937;field_30968:I
official n
Ldcg;n:I
-
field_30969
public static final int field_30969- See Also:
- Mappings:
Namespace Name Mixin selector named field_30969
Lnet/minecraft/world/World;field_30969:I
intermediary field_30969
Lnet/minecraft/class_1937;field_30969:I
official o
Ldcg;o:I
-
MAX_Y
public static final int MAX_Y- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_Y
Lnet/minecraft/world/World;MAX_Y:I
intermediary field_30970
Lnet/minecraft/class_1937;field_30970:I
official p
Ldcg;p:I
-
MIN_Y
public static final int MIN_Y- See Also:
- Mappings:
Namespace Name Mixin selector named MIN_Y
Lnet/minecraft/world/World;MIN_Y:I
intermediary field_30971
Lnet/minecraft/class_1937;field_30971:I
official q
Ldcg;q:I
-
blockEntityTickers
- Mappings:
Namespace Name Mixin selector named blockEntityTickers
Lnet/minecraft/world/World;blockEntityTickers:Ljava/util/List;
intermediary field_27082
Lnet/minecraft/class_1937;field_27082:Ljava/util/List;
official r
Ldcg;r:Ljava/util/List;
-
neighborUpdater
- Mappings:
Namespace Name Mixin selector named neighborUpdater
Lnet/minecraft/world/World;neighborUpdater:Lnet/minecraft/world/block/NeighborUpdater;
intermediary field_38226
Lnet/minecraft/class_1937;field_38226:Lnet/minecraft/class_7165;
official s
Ldcg;s:Lepn;
-
pendingBlockEntityTickers
- Mappings:
Namespace Name Mixin selector named pendingBlockEntityTickers
Lnet/minecraft/world/World;pendingBlockEntityTickers:Ljava/util/List;
intermediary field_27081
Lnet/minecraft/class_1937;field_27081:Ljava/util/List;
official a
Ldcg;a:Ljava/util/List;
-
iteratingTickingBlockEntities
private boolean iteratingTickingBlockEntities- Mappings:
Namespace Name Mixin selector named iteratingTickingBlockEntities
Lnet/minecraft/world/World;iteratingTickingBlockEntities:Z
intermediary field_9249
Lnet/minecraft/class_1937;field_9249:Z
official b
Ldcg;b:Z
-
thread
- Mappings:
Namespace Name Mixin selector named thread
Lnet/minecraft/world/World;thread:Ljava/lang/Thread;
intermediary field_17086
Lnet/minecraft/class_1937;field_17086:Ljava/lang/Thread;
official c
Ldcg;c:Ljava/lang/Thread;
-
debugWorld
private final boolean debugWorld- Mappings:
Namespace Name Mixin selector named debugWorld
Lnet/minecraft/world/World;debugWorld:Z
intermediary field_24496
Lnet/minecraft/class_1937;field_24496:Z
official d
Ldcg;d:Z
-
ambientDarkness
private int ambientDarkness- Mappings:
Namespace Name Mixin selector named ambientDarkness
Lnet/minecraft/world/World;ambientDarkness:I
intermediary field_9226
Lnet/minecraft/class_1937;field_9226:I
official e
Ldcg;e:I
-
lcgBlockSeed
protected int lcgBlockSeed- Mappings:
Namespace Name Mixin selector named lcgBlockSeed
Lnet/minecraft/world/World;lcgBlockSeed:I
intermediary field_9256
Lnet/minecraft/class_1937;field_9256:I
official t
Ldcg;t:I
-
lcgBlockSeedIncrement
protected final int lcgBlockSeedIncrement- See Also:
- Mappings:
Namespace Name Mixin selector named lcgBlockSeedIncrement
Lnet/minecraft/world/World;lcgBlockSeedIncrement:I
intermediary field_9238
Lnet/minecraft/class_1937;field_9238:I
official u
Ldcg;u:I
-
rainGradientPrev
protected float rainGradientPrev- Mappings:
Namespace Name Mixin selector named rainGradientPrev
Lnet/minecraft/world/World;rainGradientPrev:F
intermediary field_9253
Lnet/minecraft/class_1937;field_9253:F
official v
Ldcg;v:F
-
rainGradient
protected float rainGradient- Mappings:
Namespace Name Mixin selector named rainGradient
Lnet/minecraft/world/World;rainGradient:F
intermediary field_9235
Lnet/minecraft/class_1937;field_9235:F
official w
Ldcg;w:F
-
thunderGradientPrev
protected float thunderGradientPrev- Mappings:
Namespace Name Mixin selector named thunderGradientPrev
Lnet/minecraft/world/World;thunderGradientPrev:F
intermediary field_9251
Lnet/minecraft/class_1937;field_9251:F
official x
Ldcg;x:F
-
thunderGradient
protected float thunderGradient- Mappings:
Namespace Name Mixin selector named thunderGradient
Lnet/minecraft/world/World;thunderGradient:F
intermediary field_9234
Lnet/minecraft/class_1937;field_9234:F
official y
Ldcg;y:F
-
random
- Mappings:
Namespace Name Mixin selector named random
Lnet/minecraft/world/World;random:Lnet/minecraft/util/math/random/Random;
intermediary field_9229
Lnet/minecraft/class_1937;field_9229:Lnet/minecraft/class_5819;
official z
Ldcg;z:Layo;
-
threadSafeRandom
Deprecated.- Mappings:
Namespace Name Mixin selector named threadSafeRandom
Lnet/minecraft/world/World;threadSafeRandom:Lnet/minecraft/util/math/random/Random;
intermediary field_38861
Lnet/minecraft/class_1937;field_38861:Lnet/minecraft/class_5819;
official f
Ldcg;f:Layo;
-
dimensionEntry
- Mappings:
Namespace Name Mixin selector named dimensionEntry
Lnet/minecraft/world/World;dimensionEntry:Lnet/minecraft/registry/entry/RegistryEntry;
intermediary field_36402
Lnet/minecraft/class_1937;field_36402:Lnet/minecraft/class_6880;
official D
Ldcg;D:Ljj;
-
properties
- Mappings:
Namespace Name Mixin selector named properties
Lnet/minecraft/world/World;properties:Lnet/minecraft/world/MutableWorldProperties;
intermediary field_9232
Lnet/minecraft/class_1937;field_9232:Lnet/minecraft/class_5269;
official A
Ldcg;A:Leqr;
-
profiler
- Mappings:
Namespace Name Mixin selector named profiler
Lnet/minecraft/world/World;profiler:Ljava/util/function/Supplier;
intermediary field_16316
Lnet/minecraft/class_1937;field_16316:Ljava/util/function/Supplier;
official E
Ldcg;E:Ljava/util/function/Supplier;
-
isClient
public final boolean isClient- Mappings:
Namespace Name Mixin selector named isClient
Lnet/minecraft/world/World;isClient:Z
intermediary field_9236
Lnet/minecraft/class_1937;field_9236:Z
official B
Ldcg;B:Z
-
border
- Mappings:
Namespace Name Mixin selector named border
Lnet/minecraft/world/World;border:Lnet/minecraft/world/border/WorldBorder;
intermediary field_9223
Lnet/minecraft/class_1937;field_9223:Lnet/minecraft/class_2784;
official F
Ldcg;F:Lduc;
-
biomeAccess
- Mappings:
Namespace Name Mixin selector named biomeAccess
Lnet/minecraft/world/World;biomeAccess:Lnet/minecraft/world/biome/source/BiomeAccess;
intermediary field_20639
Lnet/minecraft/class_1937;field_20639:Lnet/minecraft/class_4543;
official G
Ldcg;G:Lddi;
-
registryKey
- Mappings:
Namespace Name Mixin selector named registryKey
Lnet/minecraft/world/World;registryKey:Lnet/minecraft/registry/RegistryKey;
intermediary field_25176
Lnet/minecraft/class_1937;field_25176:Lnet/minecraft/class_5321;
official H
Ldcg;H:Lakj;
-
registryManager
- Mappings:
Namespace Name Mixin selector named registryManager
Lnet/minecraft/world/World;registryManager:Lnet/minecraft/registry/DynamicRegistryManager;
intermediary field_42475
Lnet/minecraft/class_1937;field_42475:Lnet/minecraft/class_5455;
official I
Ldcg;I:Ljx;
-
damageSources
- Mappings:
Namespace Name Mixin selector named damageSources
Lnet/minecraft/world/World;damageSources:Lnet/minecraft/entity/damage/DamageSources;
intermediary field_42476
Lnet/minecraft/class_1937;field_42476:Lnet/minecraft/class_8109;
official J
Ldcg;J:Lbrb;
-
tickOrder
private long tickOrder- Mappings:
Namespace Name Mixin selector named tickOrder
Lnet/minecraft/world/World;tickOrder:J
intermediary field_35455
Lnet/minecraft/class_1937;field_35455:J
official K
Ldcg;K: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 named <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
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)V
official <init>
Ldcg;<init>(Leqr;Lakj;Ljx;Ljj;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:
getServer
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector named getServer
Lnet/minecraft/world/WorldAccess;getServer()Lnet/minecraft/server/MinecraftServer;
intermediary method_8503
Lnet/minecraft/class_1936;method_8503()Lnet/minecraft/server/MinecraftServer;
official o
Ldch;o()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_000
and less than30_000_000
. - Mappings:
Namespace Name Mixin selector named isInBuildLimit
Lnet/minecraft/world/World;isInBuildLimit(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_24794
Lnet/minecraft/class_1937;method_24794(Lnet/minecraft/class_2338;)Z
official k
Ldcg;k(Lja;)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_000
and less than30_000_000
, and the Y coordinate is greater or equal to-20_000_000
and less than20_000_000
. - Mappings:
Namespace Name Mixin selector named isValid
Lnet/minecraft/world/World;isValid(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_25953
Lnet/minecraft/class_1937;method_25953(Lnet/minecraft/class_2338;)Z
official l
Ldcg;l(Lja;)Z
-
isValidHorizontally
- Mappings:
Namespace Name Mixin selector named isValidHorizontally
Lnet/minecraft/world/World;isValidHorizontally(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_8558
Lnet/minecraft/class_1937;method_8558(Lnet/minecraft/class_2338;)Z
official g
Ldcg;g(Lja;)Z
-
isInvalidVertically
private static boolean isInvalidVertically(int y) - Mappings:
Namespace Name Mixin selector named isInvalidVertically
Lnet/minecraft/world/World;isInvalidVertically(I)Z
intermediary method_25952
Lnet/minecraft/class_1937;method_25952(I)Z
official b
Ldcg;b(I)Z
-
getWorldChunk
Returns the chunk that containspos
.- Returns:
- the chunk that contains
pos
- Mappings:
Namespace Name Mixin selector named getWorldChunk
Lnet/minecraft/world/World;getWorldChunk(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/chunk/WorldChunk;
intermediary method_8500
Lnet/minecraft/class_1937;method_8500(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2818;
official m
Ldcg;m(Lja;)Ldur;
-
getChunk
Description copied from interface:WorldView
Returns the chunk with positionchunkX
andchunkZ
.- Specified by:
getChunk
in interfaceWorldView
- Returns:
- the chunk with position
chunkX
andchunkZ
- Mappings:
Namespace Name Mixin selector named getChunk
Lnet/minecraft/world/World;getChunk(II)Lnet/minecraft/world/chunk/WorldChunk;
intermediary method_8497
Lnet/minecraft/class_1937;method_8497(II)Lnet/minecraft/class_2818;
official d
Ldcg;d(II)Ldur;
-
getChunk
@Nullable public @Nullable Chunk getChunk(int chunkX, int chunkZ, ChunkStatus leastStatus, boolean create) - Specified by:
getChunk
in interfaceWorldView
- Mappings:
Namespace Name Mixin selector named getChunk
Lnet/minecraft/world/WorldView;getChunk(IILnet/minecraft/world/chunk/ChunkStatus;Z)Lnet/minecraft/world/chunk/Chunk;
intermediary method_8402
Lnet/minecraft/class_4538;method_8402(IILnet/minecraft/class_2806;Z)Lnet/minecraft/class_2791;
official a
Ldcj;a(IILdvi;Z)Lduh;
-
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:
setBlockState
in 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 setBlockState
Lnet/minecraft/world/ModifiableWorld;setBlockState(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;I)Z
intermediary method_8652
Lnet/minecraft/class_1945;method_8652(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;I)Z
official a
Ldco;a(Lja;Ldsl;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:
setBlockState
in 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 setBlockState
Lnet/minecraft/world/ModifiableWorld;setBlockState(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;II)Z
intermediary method_30092
Lnet/minecraft/class_1945;method_30092(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;II)Z
official a
Ldco;a(Lja;Ldsl;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 named onBlockChanged
Lnet/minecraft/world/World;onBlockChanged(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;)V
intermediary method_19282
Lnet/minecraft/class_1937;method_19282(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;)V
official a
Ldcg;a(Lja;Ldsl;Ldsl;)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:
removeBlock
in 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 removeBlock
Lnet/minecraft/world/ModifiableWorld;removeBlock(Lnet/minecraft/util/math/BlockPos;Z)Z
intermediary method_8650
Lnet/minecraft/class_1945;method_8650(Lnet/minecraft/class_2338;Z)Z
official a
Ldco;a(Lja;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:
breakBlock
in interfaceModifiableWorld
- Returns:
- whether the block was removed successfully
- See Also:
- Mappings:
Namespace Name Mixin selector named breakBlock
Lnet/minecraft/world/ModifiableWorld;breakBlock(Lnet/minecraft/util/math/BlockPos;ZLnet/minecraft/entity/Entity;I)Z
intermediary method_30093
Lnet/minecraft/class_1945;method_30093(Lnet/minecraft/class_2338;ZLnet/minecraft/class_1297;I)Z
official a
Ldco;a(Lja;ZLbsh;I)Z
-
addBlockBreakParticles
- Mappings:
Namespace Name Mixin selector named addBlockBreakParticles
Lnet/minecraft/world/World;addBlockBreakParticles(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
intermediary method_31595
Lnet/minecraft/class_1937;method_31595(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
official a
Ldcg;a(Lja;Ldsl;)V
-
setBlockState
- Mappings:
Namespace Name Mixin selector named setBlockState
Lnet/minecraft/world/World;setBlockState(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
intermediary method_8501
Lnet/minecraft/class_1937;method_8501(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Z
official b
Ldcg;b(Lja;Ldsl;)Z
-
updateListeners
public abstract void updateListeners(BlockPos pos, BlockState oldState, BlockState newState, int flags) - Mappings:
Namespace Name Mixin selector named updateListeners
Lnet/minecraft/world/World;updateListeners(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;I)V
intermediary method_8413
Lnet/minecraft/class_1937;method_8413(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;I)V
official a
Ldcg;a(Lja;Ldsl;Ldsl;I)V
-
scheduleBlockRerenderIfNeeded
- Mappings:
Namespace Name Mixin selector named scheduleBlockRerenderIfNeeded
Lnet/minecraft/world/World;scheduleBlockRerenderIfNeeded(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;)V
intermediary method_16109
Lnet/minecraft/class_1937;method_16109(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;)V
official b
Ldcg;b(Lja;Ldsl;Ldsl;)V
-
updateNeighborsAlways
Emits a neighbor update to all 6 neighboring blocks ofpos
.- See Also:
- Mappings:
Namespace Name Mixin selector named updateNeighborsAlways
Lnet/minecraft/world/World;updateNeighborsAlways(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;)V
intermediary method_8452
Lnet/minecraft/class_1937;method_8452(Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;)V
official a
Ldcg;a(Lja;Ldfi;)V
-
updateNeighborsExcept
Emits a neighbor update to neighboring blocks ofpos
, except for the one indirection
direction.- See Also:
- Mappings:
Namespace Name Mixin selector named updateNeighborsExcept
Lnet/minecraft/world/World;updateNeighborsExcept(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/Direction;)V
intermediary method_8508
Lnet/minecraft/class_1937;method_8508(Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;Lnet/minecraft/class_2350;)V
official a
Ldcg;a(Lja;Ldfi;Ljf;)V
-
updateNeighbor
Triggers a neighbor update originating fromsourcePos
atpos
.- See Also:
- Mappings:
Namespace Name Mixin selector named updateNeighbor
Lnet/minecraft/world/World;updateNeighbor(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;)V
intermediary method_8492
Lnet/minecraft/class_1937;method_8492(Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;Lnet/minecraft/class_2338;)V
official a
Ldcg;a(Lja;Ldfi;Lja;)V
-
updateNeighbor
public void updateNeighbor(BlockState state, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) - Mappings:
Namespace Name Mixin selector named updateNeighbor
Lnet/minecraft/world/World;updateNeighbor(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;Z)V
intermediary method_41410
Lnet/minecraft/class_1937;method_41410(Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;Lnet/minecraft/class_2338;Z)V
official a
Ldcg;a(Ldsl;Lja;Ldfi;Lja;Z)V
-
replaceWithStateForNeighborUpdate
public void replaceWithStateForNeighborUpdate(Direction direction, BlockState neighborState, BlockPos pos, BlockPos neighborPos, int flags, int maxUpdateDepth) - Specified by:
replaceWithStateForNeighborUpdate
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector named replaceWithStateForNeighborUpdate
Lnet/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
intermediary method_42308
Lnet/minecraft/class_1936;method_42308(Lnet/minecraft/class_2350;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;II)V
official a
Ldch;a(Ljf;Ldsl;Lja;Lja;II)V
-
getTopY
Returns the Y coordinate of the topmost block at the coordinatesx
andz
usingheightmap
.- Specified by:
getTopY
in interfaceWorldView
- Returns:
- the Y coordinate of the topmost block at the coordinates
x
andz
usingheightmap
- Mappings:
Namespace Name Mixin selector named getTopY
Lnet/minecraft/world/WorldView;getTopY(Lnet/minecraft/world/Heightmap$Type;II)I
intermediary method_8624
Lnet/minecraft/class_4538;method_8624(Lnet/minecraft/class_2902$class_2903;II)I
official a
Ldcj;a(Ldyg$a;II)I
-
getLightingProvider
- Specified by:
getLightingProvider
in interfaceBlockRenderView
- Mappings:
Namespace Name Mixin selector named getLightingProvider
Lnet/minecraft/world/BlockRenderView;getLightingProvider()Lnet/minecraft/world/chunk/light/LightingProvider;
intermediary method_22336
Lnet/minecraft/class_1920;method_22336()Lnet/minecraft/class_3568;
official y_
Ldbj;y_()Leny;
-
getBlockState
Returns the block state atpos
.- Specified by:
getBlockState
in interfaceBlockView
- Returns:
- the block state at
pos
- Implementation Note:
- This returns the block state for
Blocks.VOID_AIR
if the Y coordinate is outside the height limit. - Mappings:
Namespace Name Mixin selector named getBlockState
Lnet/minecraft/world/BlockView;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
intermediary method_8320
Lnet/minecraft/class_1922;method_8320(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
official a_
Ldbm;a_(Lja;)Ldsl;
-
getFluidState
Returns the fluid state atpos
.- Specified by:
getFluidState
in interfaceBlockView
- Returns:
- the fluid state at
pos
- Implementation Note:
- This returns the fluid state for
Fluids.EMPTY
if the Y coordinate is outside the height limit. - Mappings:
Namespace Name Mixin selector named getFluidState
Lnet/minecraft/world/BlockView;getFluidState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/fluid/FluidState;
intermediary method_8316
Lnet/minecraft/class_1922;method_8316(Lnet/minecraft/class_2338;)Lnet/minecraft/class_3610;
official b_
Ldbm;b_(Lja;)Leoj;
-
isDay
public boolean isDay()- Mappings:
Namespace Name Mixin selector named isDay
Lnet/minecraft/world/World;isDay()Z
intermediary method_8530
Lnet/minecraft/class_1937;method_8530()Z
official R
Ldcg;R()Z
-
isNight
public boolean isNight()- Mappings:
Namespace Name Mixin selector named isNight
Lnet/minecraft/world/World;isNight()Z
intermediary method_23886
Lnet/minecraft/class_1937;method_23886()Z
official S
Ldcg;S()Z
-
playSound
public void playSound(@Nullable @Nullable Entity source, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) - Mappings:
Namespace Name Mixin selector named playSound
Lnet/minecraft/world/World;playSound(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FF)V
intermediary method_45445
Lnet/minecraft/class_1937;method_45445(Lnet/minecraft/class_1297;Lnet/minecraft/class_2338;Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)V
official a
Ldcg;a(Lbsh;Lja;Lavg;Lavi;FF)V
-
playSound
public void playSound(@Nullable @Nullable PlayerEntity source, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) - Specified by:
playSound
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector named playSound
Lnet/minecraft/world/WorldAccess;playSound(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FF)V
intermediary method_8396
Lnet/minecraft/class_1936;method_8396(Lnet/minecraft/class_1657;Lnet/minecraft/class_2338;Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)V
official a
Ldch;a(Lcml;Lja;Lavg;Lavi;FF)V
-
playSound
public abstract void playSound(@Nullable @Nullable PlayerEntity source, double x, double y, double z, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) - Parameters:
source
- the player that caused the sound and therefore plays the sound directly in the client, ornull
- Mappings:
Namespace Name Mixin selector named playSound
Lnet/minecraft/world/World;playSound(Lnet/minecraft/entity/player/PlayerEntity;DDDLnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/sound/SoundCategory;FFJ)V
intermediary method_8465
Lnet/minecraft/class_1937;method_8465(Lnet/minecraft/class_1657;DDDLnet/minecraft/class_6880;Lnet/minecraft/class_3419;FFJ)V
official a
Ldcg;a(Lcml;DDDLjj;Lavi;FFJ)V
-
playSound
public void playSound(@Nullable @Nullable PlayerEntity source, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch, long seed) - Parameters:
source
- the player that caused the sound and therefore plays the sound directly in the client, ornull
- Mappings:
Namespace Name Mixin selector named playSound
Lnet/minecraft/world/World;playSound(Lnet/minecraft/entity/player/PlayerEntity;DDDLnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FFJ)V
intermediary method_47967
Lnet/minecraft/class_1937;method_47967(Lnet/minecraft/class_1657;DDDLnet/minecraft/class_3414;Lnet/minecraft/class_3419;FFJ)V
official a
Ldcg;a(Lcml;DDDLavg;Lavi;FFJ)V
-
playSoundFromEntity
public abstract void playSoundFromEntity(@Nullable @Nullable PlayerEntity source, Entity entity, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) - Parameters:
source
- the player that caused the sound and therefore plays the sound directly in the client, ornull
- Mappings:
Namespace Name Mixin selector named playSoundFromEntity
Lnet/minecraft/world/World;playSoundFromEntity(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/Entity;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/sound/SoundCategory;FFJ)V
intermediary method_8449
Lnet/minecraft/class_1937;method_8449(Lnet/minecraft/class_1657;Lnet/minecraft/class_1297;Lnet/minecraft/class_6880;Lnet/minecraft/class_3419;FFJ)V
official a
Ldcg;a(Lcml;Lbsh;Ljj;Lavi;FFJ)V
-
playSound
public void playSound(@Nullable @Nullable PlayerEntity source, double x, double y, double z, SoundEvent sound, SoundCategory category) - Mappings:
Namespace Name Mixin selector named playSound
Lnet/minecraft/world/World;playSound(Lnet/minecraft/entity/player/PlayerEntity;DDDLnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;)V
intermediary method_54762
Lnet/minecraft/class_1937;method_54762(Lnet/minecraft/class_1657;DDDLnet/minecraft/class_3414;Lnet/minecraft/class_3419;)V
official a
Ldcg;a(Lcml;DDDLavg;Lavi;)V
-
playSound
public void playSound(@Nullable @Nullable PlayerEntity source, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch) - Parameters:
source
- the player that caused the sound and therefore plays the sound directly in the client, ornull
- Mappings:
Namespace Name Mixin selector named playSound
Lnet/minecraft/world/World;playSound(Lnet/minecraft/entity/player/PlayerEntity;DDDLnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FF)V
intermediary method_43128
Lnet/minecraft/class_1937;method_43128(Lnet/minecraft/class_1657;DDDLnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)V
official a
Ldcg;a(Lcml;DDDLavg;Lavi;FF)V
-
playSound
public void playSound(@Nullable @Nullable PlayerEntity source, double x, double y, double z, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch) - Mappings:
Namespace Name Mixin selector named playSound
Lnet/minecraft/world/World;playSound(Lnet/minecraft/entity/player/PlayerEntity;DDDLnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/sound/SoundCategory;FF)V
intermediary method_60511
Lnet/minecraft/class_1937;method_60511(Lnet/minecraft/class_1657;DDDLnet/minecraft/class_6880;Lnet/minecraft/class_3419;FF)V
official a
Ldcg;a(Lcml;DDDLjj;Lavi;FF)V
-
playSoundFromEntity
public void playSoundFromEntity(@Nullable @Nullable PlayerEntity source, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch) - Parameters:
source
- the player that caused the sound and therefore plays the sound directly in the client, ornull
- Mappings:
Namespace Name Mixin selector named playSoundFromEntity
Lnet/minecraft/world/World;playSoundFromEntity(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/Entity;Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FF)V
intermediary method_43129
Lnet/minecraft/class_1937;method_43129(Lnet/minecraft/class_1657;Lnet/minecraft/class_1297;Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)V
official a
Ldcg;a(Lcml;Lbsh;Lavg;Lavi;FF)V
-
playSoundAtBlockCenter
public void playSoundAtBlockCenter(BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch, boolean useDistance) - Mappings:
Namespace Name Mixin selector named playSoundAtBlockCenter
Lnet/minecraft/world/World;playSoundAtBlockCenter(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FFZ)V
intermediary method_45446
Lnet/minecraft/class_1937;method_45446(Lnet/minecraft/class_2338;Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FFZ)V
official a
Ldcg;a(Lja;Lavg;Lavi;FFZ)V
-
playSoundFromEntity
public void playSoundFromEntity(Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch) - Mappings:
Namespace Name Mixin selector named playSoundFromEntity
Lnet/minecraft/world/World;playSoundFromEntity(Lnet/minecraft/entity/Entity;Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FF)V
intermediary method_55116
Lnet/minecraft/class_1937;method_55116(Lnet/minecraft/class_1297;Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)V
official a
Ldcg;a(Lbsh;Lavg;Lavi;FF)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 named playSound
Lnet/minecraft/world/World;playSound(DDDLnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FFZ)V
intermediary method_8486
Lnet/minecraft/class_1937;method_8486(DDDLnet/minecraft/class_3414;Lnet/minecraft/class_3419;FFZ)V
official a
Ldcg;a(DDDLavg;Lavi;FFZ)V
-
addParticle
public void addParticle(ParticleEffect parameters, double x, double y, double z, double velocityX, double velocityY, double velocityZ) - Specified by:
addParticle
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector named addParticle
Lnet/minecraft/world/WorldAccess;addParticle(Lnet/minecraft/particle/ParticleEffect;DDDDDD)V
intermediary method_8406
Lnet/minecraft/class_1936;method_8406(Lnet/minecraft/class_2394;DDDDDD)V
official a
Ldch;a(Llh;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 named addParticle
Lnet/minecraft/world/World;addParticle(Lnet/minecraft/particle/ParticleEffect;ZDDDDDD)V
intermediary method_8466
Lnet/minecraft/class_1937;method_8466(Lnet/minecraft/class_2394;ZDDDDDD)V
official a
Ldcg;a(Llh;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 named addImportantParticle
Lnet/minecraft/world/World;addImportantParticle(Lnet/minecraft/particle/ParticleEffect;DDDDDD)V
intermediary method_8494
Lnet/minecraft/class_1937;method_8494(Lnet/minecraft/class_2394;DDDDDD)V
official b
Ldcg;b(Llh;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 named addImportantParticle
Lnet/minecraft/world/World;addImportantParticle(Lnet/minecraft/particle/ParticleEffect;ZDDDDDD)V
intermediary method_17452
Lnet/minecraft/class_1937;method_17452(Lnet/minecraft/class_2394;ZDDDDDD)V
official b
Ldcg;b(Llh;ZDDDDDD)V
-
getSkyAngleRadians
public float getSkyAngleRadians(float tickDelta) - Mappings:
Namespace Name Mixin selector named getSkyAngleRadians
Lnet/minecraft/world/World;getSkyAngleRadians(F)F
intermediary method_8442
Lnet/minecraft/class_1937;method_8442(F)F
official a
Ldcg;a(F)F
-
addBlockEntityTicker
- Mappings:
Namespace Name Mixin selector named addBlockEntityTicker
Lnet/minecraft/world/World;addBlockEntityTicker(Lnet/minecraft/world/chunk/BlockEntityTickInvoker;)V
intermediary method_31594
Lnet/minecraft/class_1937;method_31594(Lnet/minecraft/class_5562;)V
official a
Ldcg;a(Ldrj;)V
-
tickBlockEntities
protected void tickBlockEntities()- Mappings:
Namespace Name Mixin selector named tickBlockEntities
Lnet/minecraft/world/World;tickBlockEntities()V
intermediary method_18471
Lnet/minecraft/class_1937;method_18471()V
official T
Ldcg;T()V
-
tickEntity
- Mappings:
Namespace Name Mixin selector named tickEntity
Lnet/minecraft/world/World;tickEntity(Ljava/util/function/Consumer;Lnet/minecraft/entity/Entity;)V
intermediary method_18472
Lnet/minecraft/class_1937;method_18472(Ljava/util/function/Consumer;Lnet/minecraft/class_1297;)V
official a
Ldcg;a(Ljava/util/function/Consumer;Lbsh;)V
-
shouldUpdatePostDeath
- Mappings:
Namespace Name Mixin selector named shouldUpdatePostDeath
Lnet/minecraft/world/World;shouldUpdatePostDeath(Lnet/minecraft/entity/Entity;)Z
intermediary method_38989
Lnet/minecraft/class_1937;method_38989(Lnet/minecraft/class_1297;)Z
official h
Ldcg;h(Lbsh;)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 shouldTickBlocksInChunk
Lnet/minecraft/world/World;shouldTickBlocksInChunk(J)Z
intermediary method_39425
Lnet/minecraft/class_1937;method_39425(J)Z
official a
Ldcg;a(J)Z
-
shouldTickBlockPos
- Mappings:
Namespace Name Mixin selector named shouldTickBlockPos
Lnet/minecraft/world/World;shouldTickBlockPos(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_41411
Lnet/minecraft/class_1937;method_41411(Lnet/minecraft/class_2338;)Z
official n
Ldcg;n(Lja;)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 named createExplosion
Lnet/minecraft/world/World;createExplosion(Lnet/minecraft/entity/Entity;DDDFLnet/minecraft/world/World$ExplosionSourceType;)Lnet/minecraft/world/explosion/Explosion;
intermediary method_8437
Lnet/minecraft/class_1937;method_8437(Lnet/minecraft/class_1297;DDDFLnet/minecraft/class_1937$class_7867;)Lnet/minecraft/class_1927;
official a
Ldcg;a(Lbsh;DDDFLdcg$a;)Ldby;
-
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 named createExplosion
Lnet/minecraft/world/World;createExplosion(Lnet/minecraft/entity/Entity;DDDFZLnet/minecraft/world/World$ExplosionSourceType;)Lnet/minecraft/world/explosion/Explosion;
intermediary method_8537
Lnet/minecraft/class_1937;method_8537(Lnet/minecraft/class_1297;DDDFZLnet/minecraft/class_1937$class_7867;)Lnet/minecraft/class_1927;
official a
Ldcg;a(Lbsh;DDDFZLdcg$a;)Ldby;
-
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 named createExplosion
Lnet/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;
intermediary method_46407
Lnet/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 a
Ldcg;a(Lbsh;Lbra;Ldbz;Lewh;FZLdcg$a;)Ldby;
-
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) - Mappings:
Namespace Name Mixin selector named createExplosion
Lnet/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;
intermediary method_55117
Lnet/minecraft/class_1937;method_55117(Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;Lnet/minecraft/class_5362;DDDFZLnet/minecraft/class_1937$class_7867;)Lnet/minecraft/class_1927;
official a
Ldcg;a(Lbsh;Lbra;Ldbz;DDDFZLdcg$a;)Ldby;
-
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, ParticleEffect particle, ParticleEffect emitterParticle, RegistryEntry<SoundEvent> soundEvent) Creates an explosion.- Parameters:
entity
- the entity that exploded (like TNT) ornull
to indicate no entity explodeddamageSource
- the custom damage source, ornull
to use the default (DamageSources.explosion(Explosion)
)behavior
- the explosion behavior, ornull
to use the defaultcreateFire
- whether the explosion should create fire- Mappings:
Namespace Name Mixin selector named createExplosion
Lnet/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/registry/entry/RegistryEntry;)Lnet/minecraft/world/explosion/Explosion;
intermediary method_8454
Lnet/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_6880;)Lnet/minecraft/class_1927;
official a
Ldcg;a(Lbsh;Lbra;Ldbz;DDDFZLdcg$a;Llh;Llh;Ljj;)Ldby;
-
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, ParticleEffect particle, ParticleEffect emitterParticle, RegistryEntry<SoundEvent> soundEvent) - Mappings:
Namespace Name Mixin selector named createExplosion
Lnet/minecraft/world/World;createExplosion(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;Lnet/minecraft/world/explosion/ExplosionBehavior;DDDFZLnet/minecraft/world/World$ExplosionSourceType;ZLnet/minecraft/particle/ParticleEffect;Lnet/minecraft/particle/ParticleEffect;Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/world/explosion/Explosion;
intermediary method_46668
Lnet/minecraft/class_1937;method_46668(Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;Lnet/minecraft/class_5362;DDDFZLnet/minecraft/class_1937$class_7867;ZLnet/minecraft/class_2394;Lnet/minecraft/class_2394;Lnet/minecraft/class_6880;)Lnet/minecraft/class_1927;
official a
Ldcg;a(Lbsh;Lbra;Ldbz;DDDFZLdcg$a;ZLlh;Llh;Ljj;)Ldby;
-
getDestructionType
private Explosion.DestructionType getDestructionType(GameRules.Key<GameRules.BooleanRule> gameRuleKey) - Mappings:
Namespace Name Mixin selector named getDestructionType
Lnet/minecraft/world/World;getDestructionType(Lnet/minecraft/world/GameRules$Key;)Lnet/minecraft/world/explosion/Explosion$DestructionType;
intermediary method_46669
Lnet/minecraft/class_1937;method_46669(Lnet/minecraft/class_1928$class_4313;)Lnet/minecraft/class_1927$class_4179;
official a
Ldcg;a(Ldcc$e;)Ldby$a;
-
asString
- Mappings:
Namespace Name Mixin selector named asString
Lnet/minecraft/world/World;asString()Ljava/lang/String;
intermediary method_31419
Lnet/minecraft/class_1937;method_31419()Ljava/lang/String;
official I
Ldcg;I()Ljava/lang/String;
-
getBlockEntity
Returns the block entity atpos
, ornull
if there is none.- Specified by:
getBlockEntity
in interfaceBlockView
- Returns:
- the block entity at
pos
, ornull
if there is none - Mappings:
Namespace Name Mixin selector named getBlockEntity
Lnet/minecraft/world/BlockView;getBlockEntity(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;
intermediary method_8321
Lnet/minecraft/class_1922;method_8321(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;
official c_
Ldbm;c_(Lja;)Ldpq;
-
addBlockEntity
- Mappings:
Namespace Name Mixin selector named addBlockEntity
Lnet/minecraft/world/World;addBlockEntity(Lnet/minecraft/block/entity/BlockEntity;)V
intermediary method_8438
Lnet/minecraft/class_1937;method_8438(Lnet/minecraft/class_2586;)V
official a
Ldcg;a(Ldpq;)V
-
removeBlockEntity
- Mappings:
Namespace Name Mixin selector named removeBlockEntity
Lnet/minecraft/world/World;removeBlockEntity(Lnet/minecraft/util/math/BlockPos;)V
intermediary method_8544
Lnet/minecraft/class_1937;method_8544(Lnet/minecraft/class_2338;)V
official o
Ldcg;o(Lja;)V
-
canSetBlock
- Mappings:
Namespace Name Mixin selector named canSetBlock
Lnet/minecraft/world/World;canSetBlock(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_8477
Lnet/minecraft/class_1937;method_8477(Lnet/minecraft/class_2338;)Z
official p
Ldcg;p(Lja;)Z
-
isDirectionSolid
- Mappings:
Namespace Name Mixin selector named isDirectionSolid
Lnet/minecraft/world/World;isDirectionSolid(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Direction;)Z
intermediary method_24368
Lnet/minecraft/class_1937;method_24368(Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;Lnet/minecraft/class_2350;)Z
official a
Ldcg;a(Lja;Lbsh;Ljf;)Z
-
isTopSolid
- Mappings:
Namespace Name Mixin selector named isTopSolid
Lnet/minecraft/world/World;isTopSolid(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)Z
intermediary method_8515
Lnet/minecraft/class_1937;method_8515(Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)Z
official a
Ldcg;a(Lja;Lbsh;)Z
-
calculateAmbientDarkness
public void calculateAmbientDarkness()- Mappings:
Namespace Name Mixin selector named calculateAmbientDarkness
Lnet/minecraft/world/World;calculateAmbientDarkness()V
intermediary method_8533
Lnet/minecraft/class_1937;method_8533()V
official U
Ldcg;U()V
-
setMobSpawnOptions
public void setMobSpawnOptions(boolean spawnMonsters, boolean spawnAnimals) Sets whether monsters or animals can spawn.- Mappings:
Namespace Name Mixin selector named setMobSpawnOptions
Lnet/minecraft/world/World;setMobSpawnOptions(ZZ)V
intermediary method_8424
Lnet/minecraft/class_1937;method_8424(ZZ)V
official b
Ldcg;b(ZZ)V
-
getSpawnPos
- Mappings:
Namespace Name Mixin selector named getSpawnPos
Lnet/minecraft/world/World;getSpawnPos()Lnet/minecraft/util/math/BlockPos;
intermediary method_43126
Lnet/minecraft/class_1937;method_43126()Lnet/minecraft/class_2338;
official V
Ldcg;V()Lja;
-
getSpawnAngle
public float getSpawnAngle()- Mappings:
Namespace Name Mixin selector named getSpawnAngle
Lnet/minecraft/world/World;getSpawnAngle()F
intermediary method_43127
Lnet/minecraft/class_1937;method_43127()F
official W
Ldcg;W()F
-
initWeatherGradients
protected void initWeatherGradients()- Mappings:
Namespace Name Mixin selector named initWeatherGradients
Lnet/minecraft/world/World;initWeatherGradients()V
intermediary method_8543
Lnet/minecraft/class_1937;method_8543()V
official X
Ldcg;X()V
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-
getChunkAsView
- Specified by:
getChunkAsView
in interfaceCollisionView
- Specified by:
getChunkAsView
in interfaceWorldView
- Mappings:
Namespace Name Mixin selector named getChunkAsView
Lnet/minecraft/world/CollisionView;getChunkAsView(II)Lnet/minecraft/world/BlockView;
intermediary method_22338
Lnet/minecraft/class_1941;method_22338(II)Lnet/minecraft/class_1922;
official c
Ldbq;c(II)Ldbm;
-
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:
getOtherEntities
in 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 getOtherEntities
Lnet/minecraft/world/EntityView;getOtherEntities(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;)Ljava/util/List;
intermediary method_8333
Lnet/minecraft/class_1924;method_8333(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/List;
official a
Ldbx;a(Lbsh;Lewc;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:
getEntitiesByType
in interfaceEntityView
- Mappings:
Namespace Name Mixin selector named getEntitiesByType
Lnet/minecraft/world/EntityView;getEntitiesByType(Lnet/minecraft/util/TypeFilter;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;)Ljava/util/List;
intermediary method_18023
Lnet/minecraft/class_1924;method_18023(Lnet/minecraft/class_5575;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/List;
official a
Ldbx;a(Ldwv;Lewc;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 collectEntitiesByType
Lnet/minecraft/world/World;collectEntitiesByType(Lnet/minecraft/util/TypeFilter;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;Ljava/util/List;)V
intermediary method_47574
Lnet/minecraft/class_1937;method_47574(Lnet/minecraft/class_5575;Lnet/minecraft/class_238;Ljava/util/function/Predicate;Ljava/util/List;)V
official a
Ldcg;a(Ldwv;Lewc;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 iflimit
is small.- See Also:
- Mappings:
Namespace Name Mixin selector named collectEntitiesByType
Lnet/minecraft/world/World;collectEntitiesByType(Lnet/minecraft/util/TypeFilter;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;Ljava/util/List;I)V
intermediary method_47575
Lnet/minecraft/class_1937;method_47575(Lnet/minecraft/class_5575;Lnet/minecraft/class_238;Ljava/util/function/Predicate;Ljava/util/List;I)V
official a
Ldcg;a(Ldwv;Lewc;Ljava/util/function/Predicate;Ljava/util/List;I)V
-
getEntityById
Returns the entity using the entity ID, ornull
if 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
null
if none was found - See Also:
- Mappings:
Namespace Name Mixin selector named getEntityById
Lnet/minecraft/world/World;getEntityById(I)Lnet/minecraft/entity/Entity;
intermediary method_8469
Lnet/minecraft/class_1937;method_8469(I)Lnet/minecraft/class_1297;
official a
Ldcg;a(I)Lbsh;
-
markDirty
- Mappings:
Namespace Name Mixin selector named markDirty
Lnet/minecraft/world/World;markDirty(Lnet/minecraft/util/math/BlockPos;)V
intermediary method_8524
Lnet/minecraft/class_1937;method_8524(Lnet/minecraft/class_2338;)V
official q
Ldcg;q(Lja;)V
-
getSeaLevel
public int getSeaLevel()- Specified by:
getSeaLevel
in interfaceWorldView
- Mappings:
Namespace Name Mixin selector named getSeaLevel
Lnet/minecraft/world/WorldView;getSeaLevel()I
intermediary method_8615
Lnet/minecraft/class_4538;method_8615()I
official z_
Ldcj;z_()I
-
disconnect
public void disconnect()- Mappings:
Namespace Name Mixin selector named disconnect
Lnet/minecraft/world/World;disconnect()V
intermediary method_8525
Lnet/minecraft/class_1937;method_8525()V
official Y
Ldcg;Y()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 named getTime
Lnet/minecraft/world/World;getTime()J
intermediary method_8510
Lnet/minecraft/class_1937;method_8510()J
official Z
Ldcg;Z()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 ifdoDaylightCycle
gamerule 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 getTimeOfDay
Lnet/minecraft/world/World;getTimeOfDay()J
intermediary method_8532
Lnet/minecraft/class_1937;method_8532()J
official aa
Ldcg;aa()J
-
canPlayerModifyAt
Returns whetherplayer
can modify blocks atpos
.- Returns:
- whether
player
can modify blocks atpos
- See Also:
- Implementation Note:
- This checks the spawn protection and the world border.
- Mappings:
Namespace Name Mixin selector named canPlayerModifyAt
Lnet/minecraft/world/World;canPlayerModifyAt(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_8505
Lnet/minecraft/class_1937;method_8505(Lnet/minecraft/class_1657;Lnet/minecraft/class_2338;)Z
official a
Ldcg;a(Lcml;Lja;)Z
-
sendEntityStatus
Sends the entity status to nearby players.- See Also:
- Mappings:
Namespace Name Mixin selector named sendEntityStatus
Lnet/minecraft/world/World;sendEntityStatus(Lnet/minecraft/entity/Entity;B)V
intermediary method_8421
Lnet/minecraft/class_1937;method_8421(Lnet/minecraft/class_1297;B)V
official a
Ldcg;a(Lbsh;B)V
-
sendEntityDamage
- Mappings:
Namespace Name Mixin selector named sendEntityDamage
Lnet/minecraft/world/World;sendEntityDamage(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;)V
intermediary method_48760
Lnet/minecraft/class_1937;method_48760(Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;)V
official a
Ldcg;a(Lbsh;Lbra;)V
-
addSyncedBlockEvent
- Mappings:
Namespace Name Mixin selector named addSyncedBlockEvent
Lnet/minecraft/world/World;addSyncedBlockEvent(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;II)V
intermediary method_8427
Lnet/minecraft/class_1937;method_8427(Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;II)V
official a
Ldcg;a(Lja;Ldfi;II)V
-
getLevelProperties
- Specified by:
getLevelProperties
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector named getLevelProperties
Lnet/minecraft/world/WorldAccess;getLevelProperties()Lnet/minecraft/world/WorldProperties;
intermediary method_8401
Lnet/minecraft/class_1936;method_8401()Lnet/minecraft/class_5217;
official A_
Ldch;A_()Leqg;
-
getGameRules
- Mappings:
Namespace Name Mixin selector named getGameRules
Lnet/minecraft/world/World;getGameRules()Lnet/minecraft/world/GameRules;
intermediary method_8450
Lnet/minecraft/class_1937;method_8450()Lnet/minecraft/class_1928;
official ab
Ldcg;ab()Ldcc;
-
getTickManager
- Mappings:
Namespace Name Mixin selector named getTickManager
Lnet/minecraft/world/World;getTickManager()Lnet/minecraft/world/tick/TickManager;
intermediary method_54719
Lnet/minecraft/class_1937;method_54719()Lnet/minecraft/class_8921;
official s
Ldcg;s()Lbqs;
-
getThunderGradient
public float getThunderGradient(float delta) - Mappings:
Namespace Name Mixin selector named getThunderGradient
Lnet/minecraft/world/World;getThunderGradient(F)F
intermediary method_8478
Lnet/minecraft/class_1937;method_8478(F)F
official b
Ldcg;b(F)F
-
setThunderGradient
public void setThunderGradient(float thunderGradient) - Mappings:
Namespace Name Mixin selector named setThunderGradient
Lnet/minecraft/world/World;setThunderGradient(F)V
intermediary method_8496
Lnet/minecraft/class_1937;method_8496(F)V
official c
Ldcg;c(F)V
-
getRainGradient
public float getRainGradient(float delta) - Mappings:
Namespace Name Mixin selector named getRainGradient
Lnet/minecraft/world/World;getRainGradient(F)F
intermediary method_8430
Lnet/minecraft/class_1937;method_8430(F)F
official d
Ldcg;d(F)F
-
setRainGradient
public void setRainGradient(float rainGradient) - Mappings:
Namespace Name Mixin selector named setRainGradient
Lnet/minecraft/world/World;setRainGradient(F)V
intermediary method_8519
Lnet/minecraft/class_1937;method_8519(F)V
official e
Ldcg;e(F)V
-
isThundering
public boolean isThundering()- Mappings:
Namespace Name Mixin selector named isThundering
Lnet/minecraft/world/World;isThundering()Z
intermediary method_8546
Lnet/minecraft/class_1937;method_8546()Z
official ac
Ldcg;ac()Z
-
isRaining
public boolean isRaining()Returns whether it is raining.- Returns:
- whether it is raining
- See Also:
- Mappings:
Namespace Name Mixin selector named isRaining
Lnet/minecraft/world/World;isRaining()Z
intermediary method_8419
Lnet/minecraft/class_1937;method_8419()Z
official ad
Ldcg;ad()Z
-
hasRain
Returns whether it can rain atpos
.- Returns:
- whether it can rain at
pos
- See Also:
- Implementation Note:
- This returns
true
if 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 hasRain
Lnet/minecraft/world/World;hasRain(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_8520
Lnet/minecraft/class_1937;method_8520(Lnet/minecraft/class_2338;)Z
official r
Ldcg;r(Lja;)Z
-
getMapState
- Mappings:
Namespace Name Mixin selector named getMapState
Lnet/minecraft/world/World;getMapState(Lnet/minecraft/component/type/MapIdComponent;)Lnet/minecraft/item/map/MapState;
intermediary method_17891
Lnet/minecraft/class_1937;method_17891(Lnet/minecraft/class_9209;)Lnet/minecraft/class_22;
official a
Ldcg;a(Lepw;)Lepy;
-
putMapState
- Mappings:
Namespace Name Mixin selector named putMapState
Lnet/minecraft/world/World;putMapState(Lnet/minecraft/component/type/MapIdComponent;Lnet/minecraft/item/map/MapState;)V
intermediary method_17890
Lnet/minecraft/class_1937;method_17890(Lnet/minecraft/class_9209;Lnet/minecraft/class_22;)V
official a
Ldcg;a(Lepw;Lepy;)V
-
getNextMapId
- Mappings:
Namespace Name Mixin selector named getNextMapId
Lnet/minecraft/world/World;getNextMapId()Lnet/minecraft/component/type/MapIdComponent;
intermediary method_17889
Lnet/minecraft/class_1937;method_17889()Lnet/minecraft/class_9209;
official v
Ldcg;v()Lepw;
-
syncGlobalEvent
- Mappings:
Namespace Name Mixin selector named syncGlobalEvent
Lnet/minecraft/world/World;syncGlobalEvent(ILnet/minecraft/util/math/BlockPos;I)V
intermediary method_8474
Lnet/minecraft/class_1937;method_8474(ILnet/minecraft/class_2338;I)V
official b
Ldcg;b(ILja;I)V
-
addDetailsToCrashReport
- Mappings:
Namespace Name Mixin selector named addDetailsToCrashReport
Lnet/minecraft/world/World;addDetailsToCrashReport(Lnet/minecraft/util/crash/CrashReport;)Lnet/minecraft/util/crash/CrashReportSection;
intermediary method_8538
Lnet/minecraft/class_1937;method_8538(Lnet/minecraft/class_128;)Lnet/minecraft/class_129;
official a
Ldcg;a(Lo;)Lp;
-
setBlockBreakingInfo
- Mappings:
Namespace Name Mixin selector named setBlockBreakingInfo
Lnet/minecraft/world/World;setBlockBreakingInfo(ILnet/minecraft/util/math/BlockPos;I)V
intermediary method_8517
Lnet/minecraft/class_1937;method_8517(ILnet/minecraft/class_2338;I)V
official a
Ldcg;a(ILja;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 addFireworkParticle
Lnet/minecraft/world/World;addFireworkParticle(DDDDDDLjava/util/List;)V
intermediary method_8547
Lnet/minecraft/class_1937;method_8547(DDDDDDLjava/util/List;)V
official a
Ldcg;a(DDDDDDLjava/util/List;)V
-
getScoreboard
- Mappings:
Namespace Name Mixin selector named getScoreboard
Lnet/minecraft/world/World;getScoreboard()Lnet/minecraft/scoreboard/Scoreboard;
intermediary method_8428
Lnet/minecraft/class_1937;method_8428()Lnet/minecraft/class_269;
official M
Ldcg;M()Lexl;
-
updateComparators
- Mappings:
Namespace Name Mixin selector named updateComparators
Lnet/minecraft/world/World;updateComparators(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;)V
intermediary method_8455
Lnet/minecraft/class_1937;method_8455(Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;)V
official c
Ldcg;c(Lja;Ldfi;)V
-
getLocalDifficulty
- Specified by:
getLocalDifficulty
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector named getLocalDifficulty
Lnet/minecraft/world/WorldAccess;getLocalDifficulty(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/LocalDifficulty;
intermediary method_8404
Lnet/minecraft/class_1936;method_8404(Lnet/minecraft/class_2338;)Lnet/minecraft/class_1266;
official d_
Ldch;d_(Lja;)Lbqf;
-
getAmbientDarkness
public int getAmbientDarkness()- Specified by:
getAmbientDarkness
in interfaceWorldView
- Mappings:
Namespace Name Mixin selector named getAmbientDarkness
Lnet/minecraft/world/WorldView;getAmbientDarkness()I
intermediary method_8594
Lnet/minecraft/class_4538;method_8594()I
official B_
Ldcj;B_()I
-
setLightningTicksLeft
public void setLightningTicksLeft(int lightningTicksLeft) - Mappings:
Namespace Name Mixin selector named setLightningTicksLeft
Lnet/minecraft/world/World;setLightningTicksLeft(I)V
intermediary method_8509
Lnet/minecraft/class_1937;method_8509(I)V
official c
Ldcg;c(I)V
-
getWorldBorder
- Specified by:
getWorldBorder
in interfaceCollisionView
- Mappings:
Namespace Name Mixin selector named getWorldBorder
Lnet/minecraft/world/CollisionView;getWorldBorder()Lnet/minecraft/world/border/WorldBorder;
intermediary method_8621
Lnet/minecraft/class_1941;method_8621()Lnet/minecraft/class_2784;
official C_
Ldbq;C_()Lduc;
-
sendPacket
- Mappings:
Namespace Name Mixin selector named sendPacket
Lnet/minecraft/world/World;sendPacket(Lnet/minecraft/network/packet/Packet;)V
intermediary method_8522
Lnet/minecraft/class_1937;method_8522(Lnet/minecraft/class_2596;)V
official a
Ldcg;a(Lzb;)V
-
getDimension
- Specified by:
getDimension
in interfaceWorldView
- Mappings:
Namespace Name Mixin selector named getDimension
Lnet/minecraft/world/WorldView;getDimension()Lnet/minecraft/world/dimension/DimensionType;
intermediary method_8597
Lnet/minecraft/class_4538;method_8597()Lnet/minecraft/class_2874;
official D_
Ldcj;D_()Ldwg;
-
getDimensionEntry
- Mappings:
Namespace Name Mixin selector named getDimensionEntry
Lnet/minecraft/world/World;getDimensionEntry()Lnet/minecraft/registry/entry/RegistryEntry;
intermediary method_40134
Lnet/minecraft/class_1937;method_40134()Lnet/minecraft/class_6880;
official ae
Ldcg;ae()Ljj;
-
getRegistryKey
- Mappings:
Namespace Name Mixin selector named getRegistryKey
Lnet/minecraft/world/World;getRegistryKey()Lnet/minecraft/registry/RegistryKey;
intermediary method_27983
Lnet/minecraft/class_1937;method_27983()Lnet/minecraft/class_5321;
official af
Ldcg;af()Lakj;
-
getRandom
- Specified by:
getRandom
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector named getRandom
Lnet/minecraft/world/WorldAccess;getRandom()Lnet/minecraft/util/math/random/Random;
intermediary method_8409
Lnet/minecraft/class_1936;method_8409()Lnet/minecraft/class_5819;
official E_
Ldch;E_()Layo;
-
testBlockState
- Specified by:
testBlockState
in interfaceTestableWorld
- Mappings:
Namespace Name Mixin selector named testBlockState
Lnet/minecraft/world/TestableWorld;testBlockState(Lnet/minecraft/util/math/BlockPos;Ljava/util/function/Predicate;)Z
intermediary method_16358
Lnet/minecraft/class_3746;method_16358(Lnet/minecraft/class_2338;Ljava/util/function/Predicate;)Z
official a
Ldcm;a(Lja;Ljava/util/function/Predicate;)Z
-
testFluidState
- Specified by:
testFluidState
in interfaceTestableWorld
- Mappings:
Namespace Name Mixin selector named testFluidState
Lnet/minecraft/world/TestableWorld;testFluidState(Lnet/minecraft/util/math/BlockPos;Ljava/util/function/Predicate;)Z
intermediary method_35237
Lnet/minecraft/class_3746;method_35237(Lnet/minecraft/class_2338;Ljava/util/function/Predicate;)Z
official b
Ldcm;b(Lja;Ljava/util/function/Predicate;)Z
-
getRecipeManager
- Mappings:
Namespace Name Mixin selector named getRecipeManager
Lnet/minecraft/world/World;getRecipeManager()Lnet/minecraft/recipe/RecipeManager;
intermediary method_8433
Lnet/minecraft/class_1937;method_8433()Lnet/minecraft/class_1863;
official r
Ldcg;r()Lcyn;
-
getRandomPosInChunk
- Mappings:
Namespace Name Mixin selector named getRandomPosInChunk
Lnet/minecraft/world/World;getRandomPosInChunk(IIII)Lnet/minecraft/util/math/BlockPos;
intermediary method_8536
Lnet/minecraft/class_1937;method_8536(IIII)Lnet/minecraft/class_2338;
official a
Ldcg;a(IIII)Lja;
-
isSavingDisabled
public boolean isSavingDisabled()- Mappings:
Namespace Name Mixin selector named isSavingDisabled
Lnet/minecraft/world/World;isSavingDisabled()Z
intermediary method_8458
Lnet/minecraft/class_1937;method_8458()Z
official t
Ldcg;t()Z
-
getProfiler
- Mappings:
Namespace Name Mixin selector named getProfiler
Lnet/minecraft/world/World;getProfiler()Lnet/minecraft/util/profiler/Profiler;
intermediary method_16107
Lnet/minecraft/class_1937;method_16107()Lnet/minecraft/class_3695;
official ag
Ldcg;ag()Lbmv;
-
getProfilerSupplier
- Mappings:
Namespace Name Mixin selector named getProfilerSupplier
Lnet/minecraft/world/World;getProfilerSupplier()Ljava/util/function/Supplier;
intermediary method_24367
Lnet/minecraft/class_1937;method_24367()Ljava/util/function/Supplier;
official ah
Ldcg;ah()Ljava/util/function/Supplier;
-
getBiomeAccess
- Specified by:
getBiomeAccess
in interfaceWorldView
- Mappings:
Namespace Name Mixin selector named getBiomeAccess
Lnet/minecraft/world/WorldView;getBiomeAccess()Lnet/minecraft/world/biome/source/BiomeAccess;
intermediary method_22385
Lnet/minecraft/class_4538;method_22385()Lnet/minecraft/class_4543;
official F_
Ldcj;F_()Lddi;
-
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 isDebugWorld
Lnet/minecraft/world/World;isDebugWorld()Z
intermediary method_27982
Lnet/minecraft/class_1937;method_27982()Z
official ai
Ldcg;ai()Z
-
getEntityLookup
- Mappings:
Namespace Name Mixin selector named getEntityLookup
Lnet/minecraft/world/World;getEntityLookup()Lnet/minecraft/world/entity/EntityLookup;
intermediary method_31592
Lnet/minecraft/class_1937;method_31592()Lnet/minecraft/class_5577;
official G
Ldcg;G()Ldwx;
-
getTickOrder
public long getTickOrder()- Specified by:
getTickOrder
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector named getTickOrder
Lnet/minecraft/world/WorldAccess;getTickOrder()J
intermediary method_39224
Lnet/minecraft/class_1936;method_39224()J
official G_
Ldch;G_()J
-
getRegistryManager
- Specified by:
getRegistryManager
in interfaceWorldView
- Mappings:
Namespace Name Mixin selector named getRegistryManager
Lnet/minecraft/world/WorldView;getRegistryManager()Lnet/minecraft/registry/DynamicRegistryManager;
intermediary method_30349
Lnet/minecraft/class_4538;method_30349()Lnet/minecraft/class_5455;
official H_
Ldcj;H_()Ljx;
-
getDamageSources
- Mappings:
Namespace Name Mixin selector named getDamageSources
Lnet/minecraft/world/World;getDamageSources()Lnet/minecraft/entity/damage/DamageSources;
intermediary method_48963
Lnet/minecraft/class_1937;method_48963()Lnet/minecraft/class_8109;
official aj
Ldcg;aj()Lbrb;
-
getBrewingRecipeRegistry
- Mappings:
Namespace Name Mixin selector named getBrewingRecipeRegistry
Lnet/minecraft/world/World;getBrewingRecipeRegistry()Lnet/minecraft/recipe/BrewingRecipeRegistry;
intermediary method_59547
Lnet/minecraft/class_1937;method_59547()Lnet/minecraft/class_1845;
official K
Ldcg;K()Lcwd;
-