Class ServerWorld
- All Implemented Interfaces:
AutoCloseable
,BiomeAccess.Storage
,BlockRenderView
,BlockView
,CollisionView
,EntityView
,HeightLimitView
,LunarWorldView
,ModifiableTestableWorld
,ModifiableWorld
,RedstoneView
,RegistryWorldView
,ServerWorldAccess
,StructureWorldAccess
,TestableWorld
,WorldAccess
,WorldView
- Mappings:
Namespace Name named net/minecraft/server/world/ServerWorld
intermediary net/minecraft/class_3218
official arf
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.World
World.ExplosionSourceType
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List
<BlockEvent> private final WorldTickScheduler
<Block> private final ServerChunkManager
private static final IntProvider
static final IntProvider
(package private) final Int2ObjectMap
<EnderDragonPart> (package private) boolean
static final BlockPos
private @Nullable EnderDragonFight
(package private) final EntityList
private final ServerEntityManager
<Entity> private final WorldTickScheduler
<Fluid> private final GameEventDispatchManager
private int
private boolean
private static final Logger
private static final int
private final PathNodeTypeCache
(package private) final List
<ServerPlayerEntity> private final PortalForcer
protected final RaidManager
static final IntProvider
private final RandomSequencesState
boolean
private final MinecraftServer
private static final int
The number of ticks (300) the world will continue to tick entities after all players have left and the world does not contain any forced chunks.private final boolean
private final SleepManager
private int
private final List
<SpecialSpawner> private final StructureAccessor
private final StructureLocator
private final ObjectLinkedOpenHashSet
<BlockEvent> static final IntProvider
private final ServerWorldProperties
Fields inherited from class net.minecraft.world.World
blockEntityTickers, CODEC, END, field_30967, field_30968, field_30969, HORIZONTAL_LIMIT, isClient, lcgBlockSeed, lcgBlockSeedIncrement, MAX_UPDATE_DEPTH, MAX_Y, MIN_Y, neighborUpdater, NETHER, OVERWORLD, properties, rainGradient, rainGradientPrev, random, thunderGradient, thunderGradientPrev
Fields inherited from interface net.minecraft.world.RedstoneView
DIRECTIONS
-
Constructor Summary
ConstructorDescriptionServerWorld
(MinecraftServer server, Executor workerExecutor, LevelStorage.Session session, ServerWorldProperties properties, RegistryKey<World> worldKey, DimensionOptions dimensionOptions, WorldGenerationProgressListener worldGenerationProgressListener, boolean debugWorld, long seed, List<SpecialSpawner> spawners, boolean shouldTickTime, @Nullable RandomSequencesState randomSequencesState) -
Method Summary
Modifier and TypeMethodDescriptionaddDetailsToCrashReport
(CrashReport report) void
addEntities
(Stream<Entity> entities) private boolean
private void
addPlayer
(ServerPlayerEntity player) void
addSyncedBlockEvent
(BlockPos pos, Block block, int type, int data) asString()
void
cacheStructures
(Chunk chunk) boolean
canPlayerModifyAt
(PlayerEntity player, BlockPos pos) Returns whetherplayer
can modify blocks atpos
.void
void
close()
<T extends Entity>
voidcollectEntitiesByType
(TypeFilter<Entity, T> filter, Predicate<? super T> predicate, List<? super T> result) <T extends Entity>
voidcollectEntitiesByType
(TypeFilter<Entity, T> filter, Predicate<? super T> predicate, List<? super T> result, int limit) Collects entities of the given type, up tolimit
.static void
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.void
disableTickSchedulers
(WorldChunk chunk) void
private void
dumpBlockEntities
(Writer writer) private static void
dumpEntities
(Writer writer, Iterable<Entity> entities) void
emitGameEvent
(RegistryEntry<GameEvent> event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits a game event.List
<? extends EnderDragonEntity> Returns the list of alive ender dragons in the world.float
getBrightness
(Direction direction, boolean shaded) getDragonPart
(int id) Deprecated.getEntitiesByType
(TypeFilter<Entity, T> filter, Predicate<? super T> predicate) Computes a list of entities of the given type.Returns the entity using the UUID, ornull
if none was found.getEntityById
(int id) Returns the entity using the entity ID, ornull
if none was found.protected EntityLookup
<Entity> Returns the set that containsChunkPos
of forced chunks serialized as a long.getGeneratorStoredBiome
(int biomeX, int biomeY, int biomeZ) protected BlockPos
getLightningPos
(BlockPos pos) int
int
getPlayers
(Predicate<? super ServerPlayerEntity> predicate) Returns the list of players filtered usingpredicate
.getPlayers
(Predicate<? super ServerPlayerEntity> predicate, int limit) Returns the list of players filtered usingpredicate
, up tolimit
.Returns the raid occurring within 96 block radius, ornull
if there is none.Returns a randomly selected alive player, ornull
if there is none.long
getSeed()
private static <T> String
getTopFive
(Iterable<T> items, Function<T, String> classifier) Categoriesitems
with theclassifier
and reports a message indicating the top five biggest categories.void
handleInteraction
(EntityInteraction interaction, Entity entity, InteractionObserver observer) boolean
Returnstrue
if a raid exists within 96 block radius ofpos
.boolean
isChunkLoaded
(long chunkPos) Returnstrue
if the chunkchunkPos
is loaded.boolean
isFlat()
boolean
boolean
boolean
isNearOccupiedPointOfInterest
(BlockPos pos, int maxDistance) boolean
isNearOccupiedPointOfInterest
(ChunkSectionPos sectionPos) boolean
boolean
Returns whether sleeping can cause the night to skip.private boolean
isTickingFutureReady
(long chunkPos) void
loadEntities
(Stream<Entity> entities) @Nullable com.mojang.datafixers.util.Pair
<BlockPos, RegistryEntry<Biome>> locateBiome
(Predicate<RegistryEntry<Biome>> predicate, BlockPos pos, int radius, int horizontalBlockCheckInterval, int verticalBlockCheckInterval) locateStructure
(TagKey<Structure> structureTag, BlockPos pos, int radius, boolean skipReferencedStructures) Tries to find the closest structure of a given type near a given block.void
onBlockChanged
(BlockPos pos, BlockState oldBlock, BlockState newBlock) Called when a block state changed.void
onDimensionChanged
(Entity entity) Called on the destination world when an entity changed the dimension.void
Called on the destination world when a player changed the dimension using portals.void
onPlayerConnected
(ServerPlayerEntity player) Called on the player's world when the player connected to the server and spawned.void
onPlayerRespawned
(ServerPlayerEntity player) Called on the world that has the player's respawn point when the player respawned.void
onPlayerTeleport
(ServerPlayerEntity player) Called on the destination world when a player changed the dimension by teleportation.void
playSound
(@Nullable PlayerEntity source, double x, double y, double z, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) void
playSoundFromEntity
(@Nullable PlayerEntity source, Entity entity, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) private boolean
processBlockEvent
(BlockEvent event) private void
void
putMapState
(MapIdComponent id, MapState state) void
removePlayer
(ServerPlayerEntity player, Entity.RemovalReason reason) void
void
void
save
(@Nullable ProgressListener progressListener, boolean flush, boolean savingDisabled) Saves the world.private void
void
sendEntityDamage
(Entity entity, DamageSource damageSource) void
sendEntityStatus
(Entity entity, byte status) Sends the entity status to nearby players.private void
Sends sleeping status action bar messages to players in this world.private boolean
sendToPlayerIfNearby
(ServerPlayerEntity player, boolean force, double x, double y, double z, Packet<?> packet) Sends thepacket
toplayer
if the player is near the provided coordinates.void
setBlockBreakingInfo
(int entityId, BlockPos pos, int progress) boolean
setChunkForced
(int x, int z, boolean forced) Sets the forced status of the chunk.void
setEnderDragonFight
(@Nullable EnderDragonFight enderDragonFight) Deprecated.void
setSpawnPos
(BlockPos pos, float angle) Sets the world spawn point.void
setTimeOfDay
(long timeOfDay) Sets the time of day.void
setWeather
(int clearDuration, int rainDuration, boolean raining, boolean thundering) Sets the current weather, as well as how long it should last.private boolean
shouldCancelSpawn
(Entity entity) boolean
shouldTick
(BlockPos pos) boolean
shouldTick
(ChunkPos pos) boolean
shouldTickBlocksInChunk
(long chunkPos) Returns whether the blocks in the specified chunk should get ticked.boolean
shouldTickEntity
(BlockPos pos) Returns whether to tick entities atpos
.boolean
spawnEntity
(Entity entity) Spawns an entity.boolean
spawnNewEntityAndPassengers
(Entity entity) Checks whether any of the entity and its passengers already exist in the world, and if not, spawns the entity with its passengers.<T extends ParticleEffect>
booleanspawnParticles
(ServerPlayerEntity viewer, T particle, boolean force, double x, double y, double z, int count, double deltaX, double deltaY, double deltaZ, double speed) Spawns a particle visible toviewer
, if the viewer is near the provided coordinates.<T extends ParticleEffect>
intspawnParticles
(T particle, double x, double y, double z, int count, double deltaX, double deltaY, double deltaZ, double speed) Spawns a particle visible to nearby players.void
syncGlobalEvent
(int eventId, BlockPos pos, int data) void
syncWorldEvent
(@Nullable PlayerEntity player, int eventId, BlockPos pos, int data) void
tick
(BooleanSupplier shouldKeepTicking) private void
void
tickChunk
(WorldChunk chunk, int randomTickSpeed) void
tickEntity
(Entity entity) private void
void
tickIceAndSnow
(BlockPos pos) private void
tickPassenger
(Entity vehicle, Entity passenger) void
tickSpawners
(boolean spawnMonsters, boolean spawnAnimals) protected void
tickTime()
private void
toString()
boolean
tryLoadEntity
(Entity entity) void
unloadEntities
(WorldChunk chunk) 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
updateNeighbors
(BlockPos pos, Block block) 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.void
private void
Methods inherited from class net.minecraft.world.World
addBlockBreakParticles, addBlockEntity, addBlockEntityTicker, addFireworkParticle, addImportantParticle, addImportantParticle, addParticle, addParticle, breakBlock, calculateAmbientDarkness, canSetBlock, collectEntitiesByType, collectEntitiesByType, createExplosion, createExplosion, createExplosion, createExplosion, createExplosion, disconnect, getAmbientDarkness, getBiomeAccess, getBlockEntity, getBlockState, getChunk, getChunk, getChunkAsView, getDamageSources, getDimension, getDimensionEntry, getEntitiesByType, getFluidState, getGameRules, getLevelProperties, getLightingProvider, getLocalDifficulty, getOtherEntities, getProfiler, getProfilerSupplier, getRainGradient, getRandom, getRandomPosInChunk, getRegistryKey, getRegistryManager, getSeaLevel, getSkyAngleRadians, getSpawnAngle, getSpawnPos, getThunderGradient, getTickOrder, getTime, getTimeOfDay, getTopY, getWorldBorder, getWorldChunk, hasRain, initWeatherGradients, isClient, isDay, isDebugWorld, isDirectionSolid, isInBuildLimit, isNight, isRaining, isThundering, isTopSolid, isValid, markDirty, playSound, playSound, playSound, playSound, playSound, playSound, playSoundAtBlockCenter, playSoundFromEntity, playSoundFromEntity, removeBlock, removeBlockEntity, replaceWithStateForNeighborUpdate, scheduleBlockRerenderIfNeeded, sendPacket, setBlockState, setBlockState, setBlockState, setLightningTicksLeft, setMobSpawnOptions, setRainGradient, setThunderGradient, shouldTickBlockPos, shouldUpdatePostDeath, testBlockState, testFluidState, tickBlockEntities, tickEntity, updateComparators
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.world.BlockRenderView
getBaseLightLevel, getLightingProvider, getLightLevel, isSkyVisible
Methods inherited from interface net.minecraft.world.BlockView
getBlockEntity, getBlockState, getDismountHeight, getDismountHeight, getFluidState, getLuminance, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlock
Methods inherited from interface net.minecraft.world.CollisionView
canCollide, canPlace, doesNotIntersectEntities, doesNotIntersectEntities, findClosestCollision, findSupportingBlockPos, getBlockCollisions, getCollisions, getEntityCollisions, getWorldBorder, isBlockSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty
Methods inherited from interface net.minecraft.world.EntityView
getClosestEntity, getClosestEntity, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getEntitiesByClass, getEntitiesByType, getNonSpectatingEntities, getOtherEntities, getOtherEntities, getPlayerByUuid, 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, breakBlock, removeBlock, setBlockState, setBlockState
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.ServerWorldAccess
spawnEntityAndPassengers
Methods inherited from interface net.minecraft.world.StructureWorldAccess
isValidForSetBlock, setCurrentlyGeneratingStructureName
Methods inherited from interface net.minecraft.world.TestableWorld
testBlockState, testFluidState
Methods inherited from interface net.minecraft.world.WorldAccess
addParticle, emitGameEvent, emitGameEvent, emitGameEvent, emitGameEvent, getDifficulty, getLevelProperties, getLocalDifficulty, getLunarTime, getRandom, getTickOrder, isChunkLoaded, playSound, playSound, replaceWithStateForNeighborUpdate, scheduleBlockTick, scheduleBlockTick, scheduleFluidTick, scheduleFluidTick, syncWorldEvent
Methods inherited from interface net.minecraft.world.WorldView
containsFluid, createCommandRegistryWrapper, getAmbientDarkness, getBiome, getBiomeAccess, getBiomeForNoiseGen, getBottomY, getBrightness, getChunk, getChunk, getChunk, getChunk, getChunkAsView, getColor, getDimension, getHeight, getLightLevel, getLightLevel, getPhototaxisFavor, getRegistryManager, getSeaLevel, getStatesInBoxIfLoaded, getTopY, isAir, isChunkLoaded, isClient, isPosLoaded, isRegionLoaded, isRegionLoaded, isRegionLoaded, isSkyVisibleAllowingSea, isWater
-
Field Details
-
END_SPAWN_POS
- Mappings:
Namespace Name Mixin selector named END_SPAWN_POS
Lnet/minecraft/server/world/ServerWorld;END_SPAWN_POS:Lnet/minecraft/util/math/BlockPos;
intermediary field_25144
Lnet/minecraft/class_3218;field_25144:Lnet/minecraft/class_2338;
official a
Larf;a:Liz;
-
CLEAR_WEATHER_DURATION_PROVIDER
- Mappings:
Namespace Name Mixin selector named CLEAR_WEATHER_DURATION_PROVIDER
Lnet/minecraft/server/world/ServerWorld;CLEAR_WEATHER_DURATION_PROVIDER:Lnet/minecraft/util/math/intprovider/IntProvider;
intermediary field_41749
Lnet/minecraft/class_3218;field_41749:Lnet/minecraft/class_6017;
official b
Larf;b:Lbqa;
-
RAIN_WEATHER_DURATION_PROVIDER
- Mappings:
Namespace Name Mixin selector named RAIN_WEATHER_DURATION_PROVIDER
Lnet/minecraft/server/world/ServerWorld;RAIN_WEATHER_DURATION_PROVIDER:Lnet/minecraft/util/math/intprovider/IntProvider;
intermediary field_41750
Lnet/minecraft/class_3218;field_41750:Lnet/minecraft/class_6017;
official c
Larf;c:Lbqa;
-
CLEAR_THUNDER_WEATHER_DURATION_PROVIDER
- Mappings:
Namespace Name Mixin selector named CLEAR_THUNDER_WEATHER_DURATION_PROVIDER
Lnet/minecraft/server/world/ServerWorld;CLEAR_THUNDER_WEATHER_DURATION_PROVIDER:Lnet/minecraft/util/math/intprovider/IntProvider;
intermediary field_41748
Lnet/minecraft/class_3218;field_41748:Lnet/minecraft/class_6017;
official D
Larf;D:Lbqa;
-
THUNDER_WEATHER_DURATION_PROVIDER
- Mappings:
Namespace Name Mixin selector named THUNDER_WEATHER_DURATION_PROVIDER
Lnet/minecraft/server/world/ServerWorld;THUNDER_WEATHER_DURATION_PROVIDER:Lnet/minecraft/util/math/intprovider/IntProvider;
intermediary field_41751
Lnet/minecraft/class_3218;field_41751:Lnet/minecraft/class_6017;
official d
Larf;d:Lbqa;
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/server/world/ServerWorld;LOGGER:Lorg/slf4j/Logger;
intermediary field_13952
Lnet/minecraft/class_3218;field_13952:Lorg/slf4j/Logger;
official E
Larf;E:Lorg/slf4j/Logger;
-
SERVER_IDLE_COOLDOWN
private static final int SERVER_IDLE_COOLDOWNThe number of ticks (300) the world will continue to tick entities after all players have left and the world does not contain any forced chunks.- See Also:
- Mappings:
Namespace Name Mixin selector named SERVER_IDLE_COOLDOWN
Lnet/minecraft/server/world/ServerWorld;SERVER_IDLE_COOLDOWN:I
intermediary field_29768
Lnet/minecraft/class_3218;field_29768:I
official F
Larf;F:I
-
MAX_TICKS
private static final int MAX_TICKS- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_TICKS
Lnet/minecraft/server/world/ServerWorld;MAX_TICKS:I
intermediary field_35441
Lnet/minecraft/class_3218;field_35441:I
official G
Larf;G:I
-
players
- Mappings:
Namespace Name Mixin selector named players
Lnet/minecraft/server/world/ServerWorld;players:Ljava/util/List;
intermediary field_18261
Lnet/minecraft/class_3218;field_18261:Ljava/util/List;
official H
Larf;H:Ljava/util/List;
-
chunkManager
- Mappings:
Namespace Name Mixin selector named chunkManager
Lnet/minecraft/server/world/ServerWorld;chunkManager:Lnet/minecraft/server/world/ServerChunkManager;
intermediary field_24624
Lnet/minecraft/class_3218;field_24624:Lnet/minecraft/class_3215;
official I
Larf;I:Lard;
-
server
- Mappings:
Namespace Name Mixin selector named server
Lnet/minecraft/server/world/ServerWorld;server:Lnet/minecraft/server/MinecraftServer;
intermediary field_13959
Lnet/minecraft/class_3218;field_13959:Lnet/minecraft/server/MinecraftServer;
official J
Larf;J:Lnet/minecraft/server/MinecraftServer;
-
worldProperties
- Mappings:
Namespace Name Mixin selector named worldProperties
Lnet/minecraft/server/world/ServerWorld;worldProperties:Lnet/minecraft/world/level/ServerWorldProperties;
intermediary field_24456
Lnet/minecraft/class_3218;field_24456:Lnet/minecraft/class_5268;
official K
Larf;K:Leqc;
-
spawnChunkRadius
private int spawnChunkRadius- Mappings:
Namespace Name Mixin selector named spawnChunkRadius
Lnet/minecraft/server/world/ServerWorld;spawnChunkRadius:I
intermediary field_48271
Lnet/minecraft/class_3218;field_48271:I
official L
Larf;L:I
-
entityList
- Mappings:
Namespace Name Mixin selector named entityList
Lnet/minecraft/server/world/ServerWorld;entityList:Lnet/minecraft/world/EntityList;
intermediary field_26934
Lnet/minecraft/class_3218;field_26934:Lnet/minecraft/class_5574;
official M
Larf;M:Ldwj;
-
entityManager
- Mappings:
Namespace Name Mixin selector named entityManager
Lnet/minecraft/server/world/ServerWorld;entityManager:Lnet/minecraft/server/world/ServerEntityManager;
intermediary field_26935
Lnet/minecraft/class_3218;field_26935:Lnet/minecraft/class_5579;
official N
Larf;N:Ldwo;
-
gameEventDispatchManager
- Mappings:
Namespace Name Mixin selector named gameEventDispatchManager
Lnet/minecraft/server/world/ServerWorld;gameEventDispatchManager:Lnet/minecraft/world/event/listener/GameEventDispatchManager;
intermediary field_39984
Lnet/minecraft/class_3218;field_39984:Lnet/minecraft/class_7719;
official O
Larf;O:Ldwx;
-
savingDisabled
public boolean savingDisabled- Mappings:
Namespace Name Mixin selector named savingDisabled
Lnet/minecraft/server/world/ServerWorld;savingDisabled:Z
intermediary field_13957
Lnet/minecraft/class_3218;field_13957:Z
official e
Larf;e:Z
-
sleepManager
- Mappings:
Namespace Name Mixin selector named sleepManager
Lnet/minecraft/server/world/ServerWorld;sleepManager:Lnet/minecraft/server/world/SleepManager;
intermediary field_28859
Lnet/minecraft/class_3218;field_28859:Lnet/minecraft/class_5838;
official P
Larf;P:Lavg;
-
idleTimeout
private int idleTimeout- Mappings:
Namespace Name Mixin selector named idleTimeout
Lnet/minecraft/server/world/ServerWorld;idleTimeout:I
intermediary field_13948
Lnet/minecraft/class_3218;field_13948:I
official Q
Larf;Q:I
-
portalForcer
- Mappings:
Namespace Name Mixin selector named portalForcer
Lnet/minecraft/server/world/ServerWorld;portalForcer:Lnet/minecraft/world/PortalForcer;
intermediary field_13956
Lnet/minecraft/class_3218;field_13956:Lnet/minecraft/class_1946;
official R
Larf;R:Leou;
-
blockTickScheduler
- Mappings:
Namespace Name Mixin selector named blockTickScheduler
Lnet/minecraft/server/world/ServerWorld;blockTickScheduler:Lnet/minecraft/world/tick/WorldTickScheduler;
intermediary field_13949
Lnet/minecraft/class_3218;field_13949:Lnet/minecraft/class_6757;
official S
Larf;S:Lexg;
-
fluidTickScheduler
- Mappings:
Namespace Name Mixin selector named fluidTickScheduler
Lnet/minecraft/server/world/ServerWorld;fluidTickScheduler:Lnet/minecraft/world/tick/WorldTickScheduler;
intermediary field_13951
Lnet/minecraft/class_3218;field_13951:Lnet/minecraft/class_6757;
official T
Larf;T:Lexg;
-
pathNodeTypeCache
- Mappings:
Namespace Name Mixin selector named pathNodeTypeCache
Lnet/minecraft/server/world/ServerWorld;pathNodeTypeCache:Lnet/minecraft/entity/ai/pathing/PathNodeTypeCache;
intermediary field_49172
Lnet/minecraft/class_3218;field_49172:Lnet/minecraft/class_9315;
official U
Larf;U:Leoo;
-
loadedMobs
- Mappings:
Namespace Name Mixin selector named loadedMobs
Lnet/minecraft/server/world/ServerWorld;loadedMobs:Ljava/util/Set;
intermediary field_26932
Lnet/minecraft/class_3218;field_26932:Ljava/util/Set;
official V
Larf;V:Ljava/util/Set;
-
duringListenerUpdate
volatile boolean duringListenerUpdate- Mappings:
Namespace Name Mixin selector named duringListenerUpdate
Lnet/minecraft/server/world/ServerWorld;duringListenerUpdate:Z
intermediary field_36317
Lnet/minecraft/class_3218;field_36317:Z
official W
Larf;W:Z
-
raidManager
- Mappings:
Namespace Name Mixin selector named raidManager
Lnet/minecraft/server/world/ServerWorld;raidManager:Lnet/minecraft/village/raid/RaidManager;
intermediary field_18811
Lnet/minecraft/class_3218;field_18811:Lnet/minecraft/class_3767;
official f
Larf;f:Lcol;
-
syncedBlockEventQueue
- Mappings:
Namespace Name Mixin selector named syncedBlockEventQueue
Lnet/minecraft/server/world/ServerWorld;syncedBlockEventQueue:Lit/unimi/dsi/fastutil/objects/ObjectLinkedOpenHashSet;
intermediary field_13950
Lnet/minecraft/class_3218;field_13950:Lit/unimi/dsi/fastutil/objects/ObjectLinkedOpenHashSet;
official X
Larf;X:Lit/unimi/dsi/fastutil/objects/ObjectLinkedOpenHashSet;
-
blockEventQueue
- Mappings:
Namespace Name Mixin selector named blockEventQueue
Lnet/minecraft/server/world/ServerWorld;blockEventQueue:Ljava/util/List;
intermediary field_35565
Lnet/minecraft/class_3218;field_35565:Ljava/util/List;
official Y
Larf;Y:Ljava/util/List;
-
inBlockTick
private boolean inBlockTick- Mappings:
Namespace Name Mixin selector named inBlockTick
Lnet/minecraft/server/world/ServerWorld;inBlockTick:Z
intermediary field_13953
Lnet/minecraft/class_3218;field_13953:Z
official Z
Larf;Z:Z
-
spawners
- Mappings:
Namespace Name Mixin selector named spawners
Lnet/minecraft/server/world/ServerWorld;spawners:Ljava/util/List;
intermediary field_25141
Lnet/minecraft/class_3218;field_25141:Ljava/util/List;
official aa
Larf;aa:Ljava/util/List;
-
enderDragonFight
- Mappings:
Namespace Name Mixin selector named enderDragonFight
Lnet/minecraft/server/world/ServerWorld;enderDragonFight:Lnet/minecraft/entity/boss/dragon/EnderDragonFight;
intermediary field_25142
Lnet/minecraft/class_3218;field_25142:Lnet/minecraft/class_2881;
official ab
Larf;ab:Ldvy;
-
dragonParts
- Mappings:
Namespace Name Mixin selector named dragonParts
Lnet/minecraft/server/world/ServerWorld;dragonParts:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
intermediary field_26933
Lnet/minecraft/class_3218;field_26933:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
official ac
Larf;ac:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
structureAccessor
- Mappings:
Namespace Name Mixin selector named structureAccessor
Lnet/minecraft/server/world/ServerWorld;structureAccessor:Lnet/minecraft/world/gen/StructureAccessor;
intermediary field_23787
Lnet/minecraft/class_3218;field_23787:Lnet/minecraft/class_5138;
official ad
Larf;ad:Ldcs;
-
structureLocator
- Mappings:
Namespace Name Mixin selector named structureLocator
Lnet/minecraft/server/world/ServerWorld;structureLocator:Lnet/minecraft/world/StructureLocator;
intermediary field_36208
Lnet/minecraft/class_3218;field_36208:Lnet/minecraft/class_6832;
official ae
Larf;ae:Leim;
-
shouldTickTime
private final boolean shouldTickTime- Mappings:
Namespace Name Mixin selector named shouldTickTime
Lnet/minecraft/server/world/ServerWorld;shouldTickTime:Z
intermediary field_25143
Lnet/minecraft/class_3218;field_25143:Z
official af
Larf;af:Z
-
randomSequences
- Mappings:
Namespace Name Mixin selector named randomSequences
Lnet/minecraft/server/world/ServerWorld;randomSequences:Lnet/minecraft/util/math/random/RandomSequencesState;
intermediary field_44857
Lnet/minecraft/class_3218;field_44857:Lnet/minecraft/class_8565;
official ag
Larf;ag:Lbrc;
-
-
Constructor Details
-
ServerWorld
public ServerWorld(MinecraftServer server, Executor workerExecutor, LevelStorage.Session session, ServerWorldProperties properties, RegistryKey<World> worldKey, DimensionOptions dimensionOptions, WorldGenerationProgressListener worldGenerationProgressListener, boolean debugWorld, long seed, List<SpecialSpawner> spawners, boolean shouldTickTime, @Nullable @Nullable RandomSequencesState randomSequencesState) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/server/world/ServerWorld;<init>(Lnet/minecraft/server/MinecraftServer;Ljava/util/concurrent/Executor;Lnet/minecraft/world/level/storage/LevelStorage$Session;Lnet/minecraft/world/level/ServerWorldProperties;Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/world/dimension/DimensionOptions;Lnet/minecraft/server/WorldGenerationProgressListener;ZJLjava/util/List;ZLnet/minecraft/util/math/random/RandomSequencesState;)V
intermediary <init>
Lnet/minecraft/class_3218;<init>(Lnet/minecraft/server/MinecraftServer;Ljava/util/concurrent/Executor;Lnet/minecraft/class_32$class_5143;Lnet/minecraft/class_5268;Lnet/minecraft/class_5321;Lnet/minecraft/class_5363;Lnet/minecraft/class_3949;ZJLjava/util/List;ZLnet/minecraft/class_8565;)V
official <init>
Larf;<init>(Lnet/minecraft/server/MinecraftServer;Ljava/util/concurrent/Executor;Lepx$c;Leqc;Lale;Ldvw;Laro;ZJLjava/util/List;ZLbrc;)V
-
-
Method Details
-
setEnderDragonFight
Deprecated.- Mappings:
Namespace Name Mixin selector named setEnderDragonFight
Lnet/minecraft/server/world/ServerWorld;setEnderDragonFight(Lnet/minecraft/entity/boss/dragon/EnderDragonFight;)V
intermediary method_51837
Lnet/minecraft/class_3218;method_51837(Lnet/minecraft/class_2881;)V
official a
Larf;a(Ldvy;)V
-
setWeather
public void setWeather(int clearDuration, int rainDuration, boolean raining, boolean thundering) Sets the current weather, as well as how long it should last.- Parameters:
clearDuration
- how long the clear weather should last, in secondsrainDuration
- how long the rain or the thunderstorm should last, in secondsraining
- whether a rain is ongoingthundering
- whether a thunderstorm is ongoing- See Also:
- Mappings:
Namespace Name Mixin selector named setWeather
Lnet/minecraft/server/world/ServerWorld;setWeather(IIZZ)V
intermediary method_27910
Lnet/minecraft/class_3218;method_27910(IIZZ)V
official a
Larf;a(IIZZ)V
-
getGeneratorStoredBiome
- Specified by:
getGeneratorStoredBiome
in interfaceWorldView
- Mappings:
Namespace Name Mixin selector named getGeneratorStoredBiome
Lnet/minecraft/world/WorldView;getGeneratorStoredBiome(III)Lnet/minecraft/registry/entry/RegistryEntry;
intermediary method_22387
Lnet/minecraft/class_4538;method_22387(III)Lnet/minecraft/class_6880;
official a
Ldcc;a(III)Lji;
-
getStructureAccessor
- Mappings:
Namespace Name Mixin selector named getStructureAccessor
Lnet/minecraft/server/world/ServerWorld;getStructureAccessor()Lnet/minecraft/world/gen/StructureAccessor;
intermediary method_27056
Lnet/minecraft/class_3218;method_27056()Lnet/minecraft/class_5138;
official a
Larf;a()Ldcs;
-
tick
- Mappings:
Namespace Name Mixin selector named tick
Lnet/minecraft/server/world/ServerWorld;tick(Ljava/util/function/BooleanSupplier;)V
intermediary method_18765
Lnet/minecraft/class_3218;method_18765(Ljava/util/function/BooleanSupplier;)V
official a
Larf;a(Ljava/util/function/BooleanSupplier;)V
-
shouldTickBlocksInChunk
public boolean shouldTickBlocksInChunk(long chunkPos) Returns whether the blocks in the specified chunk should get ticked.- Overrides:
shouldTickBlocksInChunk
in classWorld
- 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
Ldbz;a(J)Z
-
tickTime
protected void tickTime()- Mappings:
Namespace Name Mixin selector named tickTime
Lnet/minecraft/server/world/ServerWorld;tickTime()V
intermediary method_29203
Lnet/minecraft/class_3218;method_29203()V
official b
Larf;b()V
-
setTimeOfDay
public void setTimeOfDay(long timeOfDay) Sets 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.- See Also:
- Mappings:
Namespace Name Mixin selector named setTimeOfDay
Lnet/minecraft/server/world/ServerWorld;setTimeOfDay(J)V
intermediary method_29199
Lnet/minecraft/class_3218;method_29199(J)V
official b
Larf;b(J)V
-
tickSpawners
public void tickSpawners(boolean spawnMonsters, boolean spawnAnimals) - Mappings:
Namespace Name Mixin selector named tickSpawners
Lnet/minecraft/server/world/ServerWorld;tickSpawners(ZZ)V
intermediary method_29202
Lnet/minecraft/class_3218;method_29202(ZZ)V
official a
Larf;a(ZZ)V
-
shouldCancelSpawn
- Mappings:
Namespace Name Mixin selector named shouldCancelSpawn
Lnet/minecraft/server/world/ServerWorld;shouldCancelSpawn(Lnet/minecraft/entity/Entity;)Z
intermediary method_31430
Lnet/minecraft/class_3218;method_31430(Lnet/minecraft/class_1297;)Z
official i
Larf;i(Lbsv;)Z
-
wakeSleepingPlayers
private void wakeSleepingPlayers()- Mappings:
Namespace Name Mixin selector named wakeSleepingPlayers
Lnet/minecraft/server/world/ServerWorld;wakeSleepingPlayers()V
intermediary method_23660
Lnet/minecraft/class_3218;method_23660()V
official as
Larf;as()V
-
tickChunk
- Mappings:
Namespace Name Mixin selector named tickChunk
Lnet/minecraft/server/world/ServerWorld;tickChunk(Lnet/minecraft/world/chunk/WorldChunk;I)V
intermediary method_18203
Lnet/minecraft/class_3218;method_18203(Lnet/minecraft/class_2818;I)V
official a
Larf;a(Lduj;I)V
-
tickIceAndSnow
- Mappings:
Namespace Name Mixin selector named tickIceAndSnow
Lnet/minecraft/server/world/ServerWorld;tickIceAndSnow(Lnet/minecraft/util/math/BlockPos;)V
intermediary method_52370
Lnet/minecraft/class_3218;method_52370(Lnet/minecraft/class_2338;)V
official a
Larf;a(Liz;)V
-
getLightningRodPos
- Mappings:
Namespace Name Mixin selector named getLightningRodPos
Lnet/minecraft/server/world/ServerWorld;getLightningRodPos(Lnet/minecraft/util/math/BlockPos;)Ljava/util/Optional;
intermediary method_31418
Lnet/minecraft/class_3218;method_31418(Lnet/minecraft/class_2338;)Ljava/util/Optional;
official E
Larf;E(Liz;)Ljava/util/Optional;
-
getLightningPos
- Mappings:
Namespace Name Mixin selector named getLightningPos
Lnet/minecraft/server/world/ServerWorld;getLightningPos(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;
intermediary method_18210
Lnet/minecraft/class_3218;method_18210(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;
official b
Larf;b(Liz;)Liz;
-
isInBlockTick
public boolean isInBlockTick()- Mappings:
Namespace Name Mixin selector named isInBlockTick
Lnet/minecraft/server/world/ServerWorld;isInBlockTick()Z
intermediary method_14177
Lnet/minecraft/class_3218;method_14177()Z
official c
Larf;c()Z
-
isSleepingEnabled
public boolean isSleepingEnabled()Returns whether sleeping can cause the night to skip.- Returns:
- whether sleeping can cause the night to skip
- Mappings:
Namespace Name Mixin selector named isSleepingEnabled
Lnet/minecraft/server/world/ServerWorld;isSleepingEnabled()Z
intermediary method_33144
Lnet/minecraft/class_3218;method_33144()Z
official d
Larf;d()Z
-
sendSleepingStatus
private void sendSleepingStatus()Sends sleeping status action bar messages to players in this world.- Mappings:
Namespace Name Mixin selector named sendSleepingStatus
Lnet/minecraft/server/world/ServerWorld;sendSleepingStatus()V
intermediary method_33143
Lnet/minecraft/class_3218;method_33143()V
official at
Larf;at()V
-
updateSleepingPlayers
public void updateSleepingPlayers()- Mappings:
Namespace Name Mixin selector named updateSleepingPlayers
Lnet/minecraft/server/world/ServerWorld;updateSleepingPlayers()V
intermediary method_8448
Lnet/minecraft/class_3218;method_8448()V
official e
Larf;e()V
-
getScoreboard
- Specified by:
getScoreboard
in classWorld
- Mappings:
Namespace Name Mixin selector named getScoreboard
Lnet/minecraft/server/world/ServerWorld;getScoreboard()Lnet/minecraft/scoreboard/ServerScoreboard;
intermediary method_14170
Lnet/minecraft/class_3218;method_14170()Lnet/minecraft/class_2995;
official f
Larf;f()Lalx;
-
tickWeather
private void tickWeather()- Mappings:
Namespace Name Mixin selector named tickWeather
Lnet/minecraft/server/world/ServerWorld;tickWeather()V
intermediary method_39501
Lnet/minecraft/class_3218;method_39501()V
official au
Larf;au()V
-
resetWeather
public void resetWeather()- Mappings:
Namespace Name Mixin selector named resetWeather
Lnet/minecraft/server/world/ServerWorld;resetWeather()V
intermediary method_14195
Lnet/minecraft/class_3218;method_14195()V
official g
Larf;g()V
-
resetIdleTimeout
public void resetIdleTimeout()- Mappings:
Namespace Name Mixin selector named resetIdleTimeout
Lnet/minecraft/server/world/ServerWorld;resetIdleTimeout()V
intermediary method_14197
Lnet/minecraft/class_3218;method_14197()V
official h
Larf;h()V
-
tickFluid
- Mappings:
Namespace Name Mixin selector named tickFluid
Lnet/minecraft/server/world/ServerWorld;tickFluid(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/fluid/Fluid;)V
intermediary method_14171
Lnet/minecraft/class_3218;method_14171(Lnet/minecraft/class_2338;Lnet/minecraft/class_3611;)V
official a
Larf;a(Liz;Lenv;)V
-
tickBlock
- Mappings:
Namespace Name Mixin selector named tickBlock
Lnet/minecraft/server/world/ServerWorld;tickBlock(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;)V
intermediary method_14189
Lnet/minecraft/class_3218;method_14189(Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;)V
official d
Larf;d(Liz;Ldfa;)V
-
tickEntity
- Mappings:
Namespace Name Mixin selector named tickEntity
Lnet/minecraft/server/world/ServerWorld;tickEntity(Lnet/minecraft/entity/Entity;)V
intermediary method_18762
Lnet/minecraft/class_3218;method_18762(Lnet/minecraft/class_1297;)V
official a
Larf;a(Lbsv;)V
-
tickPassenger
- Mappings:
Namespace Name Mixin selector named tickPassenger
Lnet/minecraft/server/world/ServerWorld;tickPassenger(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;)V
intermediary method_18763
Lnet/minecraft/class_3218;method_18763(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;)V
official a
Larf;a(Lbsv;Lbsv;)V
-
canPlayerModifyAt
Returns whetherplayer
can modify blocks atpos
.- Overrides:
canPlayerModifyAt
in classWorld
- 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
Ldbz;a(Lcmy;Liz;)Z
-
save
public void save(@Nullable @Nullable ProgressListener progressListener, boolean flush, boolean savingDisabled) Saves the world.- Parameters:
progressListener
- the listener for the saving process, ornull
to specify noneflush
- if it should immediately write all data to storage devicesavingDisabled
- whether to return early without doing anything- Mappings:
Namespace Name Mixin selector named save
Lnet/minecraft/server/world/ServerWorld;save(Lnet/minecraft/util/ProgressListener;ZZ)V
intermediary method_14176
Lnet/minecraft/class_3218;method_14176(Lnet/minecraft/class_3536;ZZ)V
official a
Larf;a(Lazg;ZZ)V
-
saveLevel
private void saveLevel()- Mappings:
Namespace Name Mixin selector named saveLevel
Lnet/minecraft/server/world/ServerWorld;saveLevel()V
intermediary method_14188
Lnet/minecraft/class_3218;method_14188()V
official av
Larf;av()V
-
getEntitiesByType
public <T extends Entity> List<? extends T> getEntitiesByType(TypeFilter<Entity, T> filter, Predicate<? super T> predicate) Computes a list of entities of the given type. Warning: Ifnull
is passed as the entity type filter, care should be taken that the type argumentT
is set toEntity
, otherwise heap pollution in the returned list orClassCastException
can occur.- Parameters:
predicate
- a predicate which returned entities must satisfy- Returns:
- a list of entities of the given type
- Mappings:
Namespace Name Mixin selector named getEntitiesByType
Lnet/minecraft/server/world/ServerWorld;getEntitiesByType(Lnet/minecraft/util/TypeFilter;Ljava/util/function/Predicate;)Ljava/util/List;
intermediary method_18198
Lnet/minecraft/class_3218;method_18198(Lnet/minecraft/class_5575;Ljava/util/function/Predicate;)Ljava/util/List;
official a
Larf;a(Ldwk;Ljava/util/function/Predicate;)Ljava/util/List;
-
collectEntitiesByType
public <T extends Entity> void collectEntitiesByType(TypeFilter<Entity, T> filter, Predicate<? super T> predicate, List<? super T> result) - Mappings:
Namespace Name Mixin selector named collectEntitiesByType
Lnet/minecraft/server/world/ServerWorld;collectEntitiesByType(Lnet/minecraft/util/TypeFilter;Ljava/util/function/Predicate;Ljava/util/List;)V
intermediary method_47538
Lnet/minecraft/class_3218;method_47538(Lnet/minecraft/class_5575;Ljava/util/function/Predicate;Ljava/util/List;)V
official a
Larf;a(Ldwk;Ljava/util/function/Predicate;Ljava/util/List;)V
-
collectEntitiesByType
public <T extends Entity> void collectEntitiesByType(TypeFilter<Entity, T> filter, Predicate<? super T> predicate, List<? super T> result, int limit) Collects entities of the given type, up tolimit
. Using this can improve performance, especially iflimit
is small.- See Also:
- Mappings:
Namespace Name Mixin selector named collectEntitiesByType
Lnet/minecraft/server/world/ServerWorld;collectEntitiesByType(Lnet/minecraft/util/TypeFilter;Ljava/util/function/Predicate;Ljava/util/List;I)V
intermediary method_47539
Lnet/minecraft/class_3218;method_47539(Lnet/minecraft/class_5575;Ljava/util/function/Predicate;Ljava/util/List;I)V
official a
Larf;a(Ldwk;Ljava/util/function/Predicate;Ljava/util/List;I)V
-
getAliveEnderDragons
Returns the list of alive ender dragons in the world.- Returns:
- the list of alive ender dragons in the world
- Mappings:
Namespace Name Mixin selector named getAliveEnderDragons
Lnet/minecraft/server/world/ServerWorld;getAliveEnderDragons()Ljava/util/List;
intermediary method_18776
Lnet/minecraft/class_3218;method_18776()Ljava/util/List;
official i
Larf;i()Ljava/util/List;
-
getPlayers
Returns the list of players filtered usingpredicate
.- Returns:
- the list of players filtered using
predicate
- Mappings:
Namespace Name Mixin selector named getPlayers
Lnet/minecraft/server/world/ServerWorld;getPlayers(Ljava/util/function/Predicate;)Ljava/util/List;
intermediary method_18766
Lnet/minecraft/class_3218;method_18766(Ljava/util/function/Predicate;)Ljava/util/List;
official a
Larf;a(Ljava/util/function/Predicate;)Ljava/util/List;
-
getPlayers
public List<ServerPlayerEntity> getPlayers(Predicate<? super ServerPlayerEntity> predicate, int limit) Returns the list of players filtered usingpredicate
, up tolimit
.- Returns:
- the list of players filtered using
predicate
, up tolimit
- Mappings:
Namespace Name Mixin selector named getPlayers
Lnet/minecraft/server/world/ServerWorld;getPlayers(Ljava/util/function/Predicate;I)Ljava/util/List;
intermediary method_47540
Lnet/minecraft/class_3218;method_47540(Ljava/util/function/Predicate;I)Ljava/util/List;
official a
Larf;a(Ljava/util/function/Predicate;I)Ljava/util/List;
-
getRandomAlivePlayer
Returns a randomly selected alive player, ornull
if there is none.- Returns:
- a randomly selected alive player, or
null
if there is none - Mappings:
Namespace Name Mixin selector named getRandomAlivePlayer
Lnet/minecraft/server/world/ServerWorld;getRandomAlivePlayer()Lnet/minecraft/server/network/ServerPlayerEntity;
intermediary method_18779
Lnet/minecraft/class_3218;method_18779()Lnet/minecraft/class_3222;
official j
Larf;j()Larg;
-
spawnEntity
Spawns an entity.- Specified by:
spawnEntity
in interfaceModifiableWorld
- See Also:
- API Note:
- To spawn an entity with passengers, use
invalid reference
ServerWorldAccess#spawnEntityAndPassengers
- Mappings:
Namespace Name Mixin selector named spawnEntity
Lnet/minecraft/world/ModifiableWorld;spawnEntity(Lnet/minecraft/entity/Entity;)Z
intermediary method_8649
Lnet/minecraft/class_1945;method_8649(Lnet/minecraft/class_1297;)Z
official b
Ldch;b(Lbsv;)Z
-
tryLoadEntity
- Mappings:
Namespace Name Mixin selector named tryLoadEntity
Lnet/minecraft/server/world/ServerWorld;tryLoadEntity(Lnet/minecraft/entity/Entity;)Z
intermediary method_18768
Lnet/minecraft/class_3218;method_18768(Lnet/minecraft/class_1297;)Z
official c
Larf;c(Lbsv;)Z
-
onDimensionChanged
Called on the destination world when an entity changed the dimension.This does not get called for players changing dimensions. Use
onPlayerChangeDimension(net.minecraft.server.network.ServerPlayerEntity)
(for portals) oronPlayerTeleport(net.minecraft.server.network.ServerPlayerEntity)
(for teleportation) instead.- See Also:
- Mappings:
Namespace Name Mixin selector named onDimensionChanged
Lnet/minecraft/server/world/ServerWorld;onDimensionChanged(Lnet/minecraft/entity/Entity;)V
intermediary method_18769
Lnet/minecraft/class_3218;method_18769(Lnet/minecraft/class_1297;)V
official d
Larf;d(Lbsv;)V
-
onPlayerTeleport
Called on the destination world when a player changed the dimension by teleportation.- See Also:
- Mappings:
Namespace Name Mixin selector named onPlayerTeleport
Lnet/minecraft/server/world/ServerWorld;onPlayerTeleport(Lnet/minecraft/server/network/ServerPlayerEntity;)V
intermediary method_18207
Lnet/minecraft/class_3218;method_18207(Lnet/minecraft/class_3222;)V
official a
Larf;a(Larg;)V
-
onPlayerChangeDimension
Called on the destination world when a player changed the dimension using portals.- See Also:
- Mappings:
Namespace Name Mixin selector named onPlayerChangeDimension
Lnet/minecraft/server/world/ServerWorld;onPlayerChangeDimension(Lnet/minecraft/server/network/ServerPlayerEntity;)V
intermediary method_18211
Lnet/minecraft/class_3218;method_18211(Lnet/minecraft/class_3222;)V
official b
Larf;b(Larg;)V
-
onPlayerConnected
Called on the player's world when the player connected to the server and spawned.- Mappings:
Namespace Name Mixin selector named onPlayerConnected
Lnet/minecraft/server/world/ServerWorld;onPlayerConnected(Lnet/minecraft/server/network/ServerPlayerEntity;)V
intermediary method_18213
Lnet/minecraft/class_3218;method_18213(Lnet/minecraft/class_3222;)V
official c
Larf;c(Larg;)V
-
onPlayerRespawned
Called on the world that has the player's respawn point when the player respawned.- Mappings:
Namespace Name Mixin selector named onPlayerRespawned
Lnet/minecraft/server/world/ServerWorld;onPlayerRespawned(Lnet/minecraft/server/network/ServerPlayerEntity;)V
intermediary method_18215
Lnet/minecraft/class_3218;method_18215(Lnet/minecraft/class_3222;)V
official d
Larf;d(Larg;)V
-
addPlayer
- Mappings:
Namespace Name Mixin selector named addPlayer
Lnet/minecraft/server/world/ServerWorld;addPlayer(Lnet/minecraft/server/network/ServerPlayerEntity;)V
intermediary method_18771
Lnet/minecraft/class_3218;method_18771(Lnet/minecraft/class_3222;)V
official e
Larf;e(Larg;)V
-
addEntity
- Mappings:
Namespace Name Mixin selector named addEntity
Lnet/minecraft/server/world/ServerWorld;addEntity(Lnet/minecraft/entity/Entity;)Z
intermediary method_14175
Lnet/minecraft/class_3218;method_14175(Lnet/minecraft/class_1297;)Z
official j
Larf;j(Lbsv;)Z
-
spawnNewEntityAndPassengers
Checks whether any of the entity and its passengers already exist in the world, and if not, spawns the entity with its passengers.- Returns:
true
if the spawning was successful, otherwisefalse
- See Also:
- Mappings:
Namespace Name Mixin selector named spawnNewEntityAndPassengers
Lnet/minecraft/server/world/ServerWorld;spawnNewEntityAndPassengers(Lnet/minecraft/entity/Entity;)Z
intermediary method_30736
Lnet/minecraft/class_3218;method_30736(Lnet/minecraft/class_1297;)Z
official e
Larf;e(Lbsv;)Z
-
unloadEntities
- Mappings:
Namespace Name Mixin selector named unloadEntities
Lnet/minecraft/server/world/ServerWorld;unloadEntities(Lnet/minecraft/world/chunk/WorldChunk;)V
intermediary method_18764
Lnet/minecraft/class_3218;method_18764(Lnet/minecraft/class_2818;)V
official a
Larf;a(Lduj;)V
-
removePlayer
- Mappings:
Namespace Name Mixin selector named removePlayer
Lnet/minecraft/server/world/ServerWorld;removePlayer(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/entity/Entity$RemovalReason;)V
intermediary method_18770
Lnet/minecraft/class_3218;method_18770(Lnet/minecraft/class_3222;Lnet/minecraft/class_1297$class_5529;)V
official a
Larf;a(Larg;Lbsv$c;)V
-
setBlockBreakingInfo
- Specified by:
setBlockBreakingInfo
in classWorld
- 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
Ldbz;a(ILiz;I)V
-
playSound
public void playSound(@Nullable @Nullable PlayerEntity source, double x, double y, double z, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) - Specified by:
playSound
in classWorld
- 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
Ldbz;a(Lcmy;DDDLji;Lawb;FFJ)V
-
playSoundFromEntity
public void playSoundFromEntity(@Nullable @Nullable PlayerEntity source, Entity entity, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) - Specified by:
playSoundFromEntity
in classWorld
- 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
Ldbz;a(Lcmy;Lbsv;Lji;Lawb;FFJ)V
-
syncGlobalEvent
- Overrides:
syncGlobalEvent
in classWorld
- 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
Ldbz;b(ILiz;I)V
-
syncWorldEvent
public void syncWorldEvent(@Nullable @Nullable PlayerEntity player, int eventId, BlockPos pos, int data) - Specified by:
syncWorldEvent
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector named syncWorldEvent
Lnet/minecraft/world/WorldAccess;syncWorldEvent(Lnet/minecraft/entity/player/PlayerEntity;ILnet/minecraft/util/math/BlockPos;I)V
intermediary method_8444
Lnet/minecraft/class_1936;method_8444(Lnet/minecraft/class_1657;ILnet/minecraft/class_2338;I)V
official a
Ldca;a(Lcmy;ILiz;I)V
-
getLogicalHeight
public int getLogicalHeight()- Mappings:
Namespace Name Mixin selector named getLogicalHeight
Lnet/minecraft/server/world/ServerWorld;getLogicalHeight()I
intermediary method_32819
Lnet/minecraft/class_3218;method_32819()I
official k
Larf;k()I
-
emitGameEvent
public void emitGameEvent(RegistryEntry<GameEvent> event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits a game event.- Specified by:
emitGameEvent
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector named emitGameEvent
Lnet/minecraft/world/WorldAccess;emitGameEvent(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/world/event/GameEvent$Emitter;)V
intermediary method_32888
Lnet/minecraft/class_1936;method_32888(Lnet/minecraft/class_6880;Lnet/minecraft/class_243;Lnet/minecraft/class_5712$class_7397;)V
official a
Ldca;a(Lji;Levs;Ldww$a;)V
-
updateListeners
- Specified by:
updateListeners
in classWorld
- 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
Ldbz;a(Liz;Ldsd;Ldsd;I)V
-
updateNeighborsAlways
Emits a neighbor update to all 6 neighboring blocks ofpos
.- Overrides:
updateNeighborsAlways
in classWorld
- 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
Ldbz;a(Liz;Ldfa;)V
-
updateNeighborsExcept
Emits a neighbor update to neighboring blocks ofpos
, except for the one indirection
direction.- Overrides:
updateNeighborsExcept
in classWorld
- 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
Ldbz;a(Liz;Ldfa;Lje;)V
-
updateNeighbor
Triggers a neighbor update originating fromsourcePos
atpos
.- Overrides:
updateNeighbor
in classWorld
- 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
Ldbz;a(Liz;Ldfa;Liz;)V
-
updateNeighbor
public void updateNeighbor(BlockState state, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) - Overrides:
updateNeighbor
in classWorld
- 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
Ldbz;a(Ldsd;Liz;Ldfa;Liz;Z)V
-
sendEntityStatus
Sends the entity status to nearby players.- Overrides:
sendEntityStatus
in classWorld
- 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
Ldbz;a(Lbsv;B)V
-
sendEntityDamage
- Overrides:
sendEntityDamage
in classWorld
- 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
Ldbz;a(Lbsv;Lbro;)V
-
getChunkManager
- Specified by:
getChunkManager
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector named getChunkManager
Lnet/minecraft/server/world/ServerWorld;getChunkManager()Lnet/minecraft/server/world/ServerChunkManager;
intermediary method_14178
Lnet/minecraft/class_3218;method_14178()Lnet/minecraft/class_3215;
official l
Larf;l()Lard;
-
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.- Overrides:
createExplosion
in classWorld
- 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
Ldbz;a(Lbsv;Lbro;Ldbs;DDDFZLdbz$a;Llg;Llg;Lji;)Ldbr;
-
addSyncedBlockEvent
- Overrides:
addSyncedBlockEvent
in classWorld
- 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
Ldbz;a(Liz;Ldfa;II)V
-
processSyncedBlockEvents
private void processSyncedBlockEvents()- Mappings:
Namespace Name Mixin selector named processSyncedBlockEvents
Lnet/minecraft/server/world/ServerWorld;processSyncedBlockEvents()V
intermediary method_14192
Lnet/minecraft/class_3218;method_14192()V
official aw
Larf;aw()V
-
processBlockEvent
- Mappings:
Namespace Name Mixin selector named processBlockEvent
Lnet/minecraft/server/world/ServerWorld;processBlockEvent(Lnet/minecraft/server/world/BlockEvent;)Z
intermediary method_14174
Lnet/minecraft/class_3218;method_14174(Lnet/minecraft/class_1919;)Z
official a
Larf;a(Ldbe;)Z
-
getBlockTickScheduler
- Specified by:
getBlockTickScheduler
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector named getBlockTickScheduler
Lnet/minecraft/server/world/ServerWorld;getBlockTickScheduler()Lnet/minecraft/world/tick/WorldTickScheduler;
intermediary method_14196
Lnet/minecraft/class_3218;method_14196()Lnet/minecraft/class_6757;
official m
Larf;m()Lexg;
-
getFluidTickScheduler
- Specified by:
getFluidTickScheduler
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector named getFluidTickScheduler
Lnet/minecraft/server/world/ServerWorld;getFluidTickScheduler()Lnet/minecraft/world/tick/WorldTickScheduler;
intermediary method_14179
Lnet/minecraft/class_3218;method_14179()Lnet/minecraft/class_6757;
official n
Larf;n()Lexg;
-
getServer
- Specified by:
getServer
in interfaceWorldAccess
- Overrides:
getServer
in classWorld
- 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
Ldca;o()Lnet/minecraft/server/MinecraftServer;
-
getPortalForcer
- Mappings:
Namespace Name Mixin selector named getPortalForcer
Lnet/minecraft/server/world/ServerWorld;getPortalForcer()Lnet/minecraft/world/PortalForcer;
intermediary method_14173
Lnet/minecraft/class_3218;method_14173()Lnet/minecraft/class_1946;
official p
Larf;p()Leou;
-
getStructureTemplateManager
- Mappings:
Namespace Name Mixin selector named getStructureTemplateManager
Lnet/minecraft/server/world/ServerWorld;getStructureTemplateManager()Lnet/minecraft/structure/StructureTemplateManager;
intermediary method_14183
Lnet/minecraft/class_3218;method_14183()Lnet/minecraft/class_3485;
official q
Larf;q()Lemm;
-
spawnParticles
public <T extends ParticleEffect> int spawnParticles(T particle, double x, double y, double z, int count, double deltaX, double deltaY, double deltaZ, double speed) Spawns a particle visible to nearby players.- Returns:
- the number of players the particle packet was sent to
- See Also:
- Implementation Note:
- If
count
is0
, a single particle will be spawned with its velocity beingdeltaX
,deltaY
,deltaZ
multiplied byspeed
. - Mappings:
Namespace Name Mixin selector named spawnParticles
Lnet/minecraft/server/world/ServerWorld;spawnParticles(Lnet/minecraft/particle/ParticleEffect;DDDIDDDD)I
intermediary method_14199
Lnet/minecraft/class_3218;method_14199(Lnet/minecraft/class_2394;DDDIDDDD)I
official a
Larf;a(Llg;DDDIDDDD)I
-
spawnParticles
public <T extends ParticleEffect> boolean spawnParticles(ServerPlayerEntity viewer, T particle, boolean force, double x, double y, double z, int count, double deltaX, double deltaY, double deltaZ, double speed) Spawns a particle visible toviewer
, if the viewer is near the provided coordinates.- Returns:
- whether the particle packet was sent
- See Also:
- Implementation Note:
- If
count
is0
, a single particle will be spawned with its velocity beingdeltaX
,deltaY
,deltaZ
multiplied byspeed
. - Mappings:
Namespace Name Mixin selector named spawnParticles
Lnet/minecraft/server/world/ServerWorld;spawnParticles(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/particle/ParticleEffect;ZDDDIDDDD)Z
intermediary method_14166
Lnet/minecraft/class_3218;method_14166(Lnet/minecraft/class_3222;Lnet/minecraft/class_2394;ZDDDIDDDD)Z
official a
Larf;a(Larg;Llg;ZDDDIDDDD)Z
-
sendToPlayerIfNearby
private boolean sendToPlayerIfNearby(ServerPlayerEntity player, boolean force, double x, double y, double z, Packet<?> packet) Sends thepacket
toplayer
if the player is near the provided coordinates.- Returns:
- whether the packet was sent
- Implementation Note:
- The threshold is 32 blocks if
force
isfalse
, and 512 blocks ifforce
istrue
. - Mappings:
Namespace Name Mixin selector named sendToPlayerIfNearby
Lnet/minecraft/server/world/ServerWorld;sendToPlayerIfNearby(Lnet/minecraft/server/network/ServerPlayerEntity;ZDDDLnet/minecraft/network/packet/Packet;)Z
intermediary method_14191
Lnet/minecraft/class_3218;method_14191(Lnet/minecraft/class_3222;ZDDDLnet/minecraft/class_2596;)Z
official a
Larf;a(Larg;ZDDDLzw;)Z
-
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.
- Specified by:
getEntityById
in classWorld
- 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
Ldbz;a(I)Lbsv;
-
getDragonPart
Deprecated.- Mappings:
Namespace Name Mixin selector named getDragonPart
Lnet/minecraft/server/world/ServerWorld;getDragonPart(I)Lnet/minecraft/entity/Entity;
intermediary method_31424
Lnet/minecraft/class_3218;method_31424(I)Lnet/minecraft/class_1297;
official b
Larf;b(I)Lbsv;
-
getEntity
Returns the entity using the UUID, ornull
if none was found.- Returns:
- the entity using the UUID, or
null
if none was found - See Also:
- Mappings:
Namespace Name Mixin selector named getEntity
Lnet/minecraft/server/world/ServerWorld;getEntity(Ljava/util/UUID;)Lnet/minecraft/entity/Entity;
intermediary method_14190
Lnet/minecraft/class_3218;method_14190(Ljava/util/UUID;)Lnet/minecraft/class_1297;
official a
Larf;a(Ljava/util/UUID;)Lbsv;
-
locateStructure
@Nullable public @Nullable BlockPos locateStructure(TagKey<Structure> structureTag, BlockPos pos, int radius, boolean skipReferencedStructures) Tries to find the closest structure of a given type near a given block.New chunks will only be generated up to the
ChunkStatus.STRUCTURE_STARTS
phase by this method.The radius is ignored for strongholds.
- Parameters:
pos
- the position to start the searching atradius
- the search radius in chunks around the chunk the given block position is in; a radius of 0 will only search in the given chunkskipReferencedStructures
- whether to exclude structures that were previously located (has positiveStructureStart.references
)- Returns:
- the position of the structure, or
null
if no structure could be found within the given search radius - See Also:
- Mappings:
Namespace Name Mixin selector named locateStructure
Lnet/minecraft/server/world/ServerWorld;locateStructure(Lnet/minecraft/registry/tag/TagKey;Lnet/minecraft/util/math/BlockPos;IZ)Lnet/minecraft/util/math/BlockPos;
intermediary method_8487
Lnet/minecraft/class_3218;method_8487(Lnet/minecraft/class_6862;Lnet/minecraft/class_2338;IZ)Lnet/minecraft/class_2338;
official a
Larf;a(Laxf;Liz;IZ)Liz;
-
locateBiome
@Nullable public @Nullable com.mojang.datafixers.util.Pair<BlockPos,RegistryEntry<Biome>> locateBiome(Predicate<RegistryEntry<Biome>> predicate, BlockPos pos, int radius, int horizontalBlockCheckInterval, int verticalBlockCheckInterval) - Mappings:
Namespace Name Mixin selector named locateBiome
Lnet/minecraft/server/world/ServerWorld;locateBiome(Ljava/util/function/Predicate;Lnet/minecraft/util/math/BlockPos;III)Lcom/mojang/datafixers/util/Pair;
intermediary method_42108
Lnet/minecraft/class_3218;method_42108(Ljava/util/function/Predicate;Lnet/minecraft/class_2338;III)Lcom/mojang/datafixers/util/Pair;
official a
Larf;a(Ljava/util/function/Predicate;Liz;III)Lcom/mojang/datafixers/util/Pair;
-
getRecipeManager
- Specified by:
getRecipeManager
in classWorld
- 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
Ldbz;r()Lcyz;
-
getTickManager
- Specified by:
getTickManager
in classWorld
- 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
Ldbz;s()Lbrg;
-
isSavingDisabled
public boolean isSavingDisabled()- Overrides:
isSavingDisabled
in classWorld
- 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
Ldbz;t()Z
-
getPersistentStateManager
- Mappings:
Namespace Name Mixin selector named getPersistentStateManager
Lnet/minecraft/server/world/ServerWorld;getPersistentStateManager()Lnet/minecraft/world/PersistentStateManager;
intermediary method_17983
Lnet/minecraft/class_3218;method_17983()Lnet/minecraft/class_26;
official u
Larf;u()Lepr;
-
getMapState
- Specified by:
getMapState
in classWorld
- 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
Ldbz;a(Lepj;)Lepl;
-
putMapState
- Specified by:
putMapState
in classWorld
- 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
Ldbz;a(Lepj;Lepl;)V
-
getNextMapId
- Specified by:
getNextMapId
in classWorld
- 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
Ldbz;v()Lepj;
-
setSpawnPos
Sets the world spawn point.- Parameters:
pos
- the position of the spawn pointangle
- the angle of the spawned entity- Mappings:
Namespace Name Mixin selector named setSpawnPos
Lnet/minecraft/server/world/ServerWorld;setSpawnPos(Lnet/minecraft/util/math/BlockPos;F)V
intermediary method_8554
Lnet/minecraft/class_3218;method_8554(Lnet/minecraft/class_2338;F)V
official a
Larf;a(Liz;F)V
-
getForcedChunks
Returns the set that containsChunkPos
of forced chunks serialized as a long.- Returns:
- the set that contains
ChunkPos
of forced chunks serialized as a long - Mappings:
Namespace Name Mixin selector named getForcedChunks
Lnet/minecraft/server/world/ServerWorld;getForcedChunks()Lit/unimi/dsi/fastutil/longs/LongSet;
intermediary method_17984
Lnet/minecraft/class_3218;method_17984()Lit/unimi/dsi/fastutil/longs/LongSet;
official w
Larf;w()Lit/unimi/dsi/fastutil/longs/LongSet;
-
setChunkForced
public boolean setChunkForced(int x, int z, boolean forced) Sets the forced status of the chunk.Forced chunks are created in-game using the
/forceload
command.- Parameters:
x
- the chunk's X coordinatez
- the chunk's Z coordinateforced
- whether to mark the chunk as forced- Mappings:
Namespace Name Mixin selector named setChunkForced
Lnet/minecraft/server/world/ServerWorld;setChunkForced(IIZ)Z
intermediary method_17988
Lnet/minecraft/class_3218;method_17988(IIZ)Z
official a
Larf;a(IIZ)Z
-
getPlayers
- Specified by:
getPlayers
in interfaceEntityView
- Mappings:
Namespace Name Mixin selector named getPlayers
Lnet/minecraft/world/EntityView;getPlayers()Ljava/util/List;
intermediary method_18456
Lnet/minecraft/class_1924;method_18456()Ljava/util/List;
official x
Ldbq;x()Ljava/util/List;
-
onBlockChanged
Called when a block state changed.- Overrides:
onBlockChanged
in classWorld
- 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
Ldbz;a(Liz;Ldsd;Ldsd;)V
-
getPointOfInterestStorage
- Mappings:
Namespace Name Mixin selector named getPointOfInterestStorage
Lnet/minecraft/server/world/ServerWorld;getPointOfInterestStorage()Lnet/minecraft/world/poi/PointOfInterestStorage;
intermediary method_19494
Lnet/minecraft/class_3218;method_19494()Lnet/minecraft/class_4153;
official y
Larf;y()Lceu;
-
isNearOccupiedPointOfInterest
- Mappings:
Namespace Name Mixin selector named isNearOccupiedPointOfInterest
Lnet/minecraft/server/world/ServerWorld;isNearOccupiedPointOfInterest(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_19500
Lnet/minecraft/class_3218;method_19500(Lnet/minecraft/class_2338;)Z
official c
Larf;c(Liz;)Z
-
isNearOccupiedPointOfInterest
- Mappings:
Namespace Name Mixin selector named isNearOccupiedPointOfInterest
Lnet/minecraft/server/world/ServerWorld;isNearOccupiedPointOfInterest(Lnet/minecraft/util/math/ChunkSectionPos;)Z
intermediary method_20588
Lnet/minecraft/class_3218;method_20588(Lnet/minecraft/class_4076;)Z
official a
Larf;a(Lkb;)Z
-
isNearOccupiedPointOfInterest
- Mappings:
Namespace Name Mixin selector named isNearOccupiedPointOfInterest
Lnet/minecraft/server/world/ServerWorld;isNearOccupiedPointOfInterest(Lnet/minecraft/util/math/BlockPos;I)Z
intermediary method_19497
Lnet/minecraft/class_3218;method_19497(Lnet/minecraft/class_2338;I)Z
official a
Larf;a(Liz;I)Z
-
getOccupiedPointOfInterestDistance
- Mappings:
Namespace Name Mixin selector named getOccupiedPointOfInterestDistance
Lnet/minecraft/server/world/ServerWorld;getOccupiedPointOfInterestDistance(Lnet/minecraft/util/math/ChunkSectionPos;)I
intermediary method_19498
Lnet/minecraft/class_3218;method_19498(Lnet/minecraft/class_4076;)I
official b
Larf;b(Lkb;)I
-
getRaidManager
- Mappings:
Namespace Name Mixin selector named getRaidManager
Lnet/minecraft/server/world/ServerWorld;getRaidManager()Lnet/minecraft/village/raid/RaidManager;
intermediary method_19495
Lnet/minecraft/class_3218;method_19495()Lnet/minecraft/class_3767;
official z
Larf;z()Lcol;
-
getRaidAt
Returns the raid occurring within 96 block radius, ornull
if there is none.- Returns:
- the raid occurring within 96 block radius, or
null
if there is none - Mappings:
Namespace Name Mixin selector named getRaidAt
Lnet/minecraft/server/world/ServerWorld;getRaidAt(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/village/raid/Raid;
intermediary method_19502
Lnet/minecraft/class_3218;method_19502(Lnet/minecraft/class_2338;)Lnet/minecraft/class_3765;
official d
Larf;d(Liz;)Lcoj;
-
hasRaidAt
Returnstrue
if a raid exists within 96 block radius ofpos
.- Returns:
true
if a raid exists within 96 block radius ofpos
- Mappings:
Namespace Name Mixin selector named hasRaidAt
Lnet/minecraft/server/world/ServerWorld;hasRaidAt(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_19503
Lnet/minecraft/class_3218;method_19503(Lnet/minecraft/class_2338;)Z
official e
Larf;e(Liz;)Z
-
handleInteraction
public void handleInteraction(EntityInteraction interaction, Entity entity, InteractionObserver observer) - Mappings:
Namespace Name Mixin selector named handleInteraction
Lnet/minecraft/server/world/ServerWorld;handleInteraction(Lnet/minecraft/entity/EntityInteraction;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/InteractionObserver;)V
intermediary method_19496
Lnet/minecraft/class_3218;method_19496(Lnet/minecraft/class_4151;Lnet/minecraft/class_1297;Lnet/minecraft/class_4094;)V
official a
Larf;a(Lcer;Lbsv;Lbuf;)V
-
dump
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named dump
Lnet/minecraft/server/world/ServerWorld;dump(Ljava/nio/file/Path;)V
intermediary method_21625
Lnet/minecraft/class_3218;method_21625(Ljava/nio/file/Path;)V
official a
Larf;a(Ljava/nio/file/Path;)V
-
dumpEntities
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named dumpEntities
Lnet/minecraft/server/world/ServerWorld;dumpEntities(Ljava/io/Writer;Ljava/lang/Iterable;)V
intermediary method_21624
Lnet/minecraft/class_3218;method_21624(Ljava/io/Writer;Ljava/lang/Iterable;)V
official a
Larf;a(Ljava/io/Writer;Ljava/lang/Iterable;)V
-
dumpBlockEntities
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named dumpBlockEntities
Lnet/minecraft/server/world/ServerWorld;dumpBlockEntities(Ljava/io/Writer;)V
intermediary method_21626
Lnet/minecraft/class_3218;method_21626(Ljava/io/Writer;)V
official a
Larf;a(Ljava/io/Writer;)V
-
clearUpdatesInArea
- Mappings:
Namespace Name Mixin selector named clearUpdatesInArea
Lnet/minecraft/server/world/ServerWorld;clearUpdatesInArea(Lnet/minecraft/util/math/BlockBox;)V
intermediary method_23658
Lnet/minecraft/class_3218;method_23658(Lnet/minecraft/class_3341;)V
official a
Larf;a(Leid;)V
-
updateNeighbors
- Specified by:
updateNeighbors
in interfaceWorldAccess
- Mappings:
Namespace Name Mixin selector named updateNeighbors
Lnet/minecraft/world/WorldAccess;updateNeighbors(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;)V
intermediary method_8408
Lnet/minecraft/class_1936;method_8408(Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;)V
official b
Ldca;b(Liz;Ldfa;)V
-
getBrightness
- Specified by:
getBrightness
in interfaceBlockRenderView
- Mappings:
Namespace Name Mixin selector named getBrightness
Lnet/minecraft/world/BlockRenderView;getBrightness(Lnet/minecraft/util/math/Direction;Z)F
intermediary method_24852
Lnet/minecraft/class_1920;method_24852(Lnet/minecraft/class_2350;Z)F
official a
Ldbc;a(Lje;Z)F
-
iterateEntities
- Mappings:
Namespace Name Mixin selector named iterateEntities
Lnet/minecraft/server/world/ServerWorld;iterateEntities()Ljava/lang/Iterable;
intermediary method_27909
Lnet/minecraft/class_3218;method_27909()Ljava/lang/Iterable;
official A
Larf;A()Ljava/lang/Iterable;
-
toString
-
isFlat
public boolean isFlat()- Mappings:
Namespace Name Mixin selector named isFlat
Lnet/minecraft/server/world/ServerWorld;isFlat()Z
intermediary method_28125
Lnet/minecraft/class_3218;method_28125()Z
official B
Larf;B()Z
-
getSeed
public long getSeed()- Specified by:
getSeed
in interfaceStructureWorldAccess
- Mappings:
Namespace Name Mixin selector named getSeed
Lnet/minecraft/world/StructureWorldAccess;getSeed()J
intermediary method_8412
Lnet/minecraft/class_5281;method_8412()J
official C
Ldcu;C()J
-
getEnderDragonFight
- Mappings:
Namespace Name Mixin selector named getEnderDragonFight
Lnet/minecraft/server/world/ServerWorld;getEnderDragonFight()Lnet/minecraft/entity/boss/dragon/EnderDragonFight;
intermediary method_29198
Lnet/minecraft/class_3218;method_29198()Lnet/minecraft/class_2881;
official D
Larf;D()Ldvy;
-
toServerWorld
- Specified by:
toServerWorld
in interfaceServerWorldAccess
- Mappings:
Namespace Name Mixin selector named toServerWorld
Lnet/minecraft/world/ServerWorldAccess;toServerWorld()Lnet/minecraft/server/world/ServerWorld;
intermediary method_8410
Lnet/minecraft/class_5425;method_8410()Lnet/minecraft/class_3218;
official E
Ldco;E()Larf;
-
getDebugString
- Mappings:
Namespace Name Mixin selector named getDebugString
Lnet/minecraft/server/world/ServerWorld;getDebugString()Ljava/lang/String;
intermediary method_31268
Lnet/minecraft/class_3218;method_31268()Ljava/lang/String;
official F
Larf;F()Ljava/lang/String;
-
getTopFive
Categoriesitems
with theclassifier
and reports a message indicating the top five biggest categories.- Parameters:
items
- the items to classifyclassifier
- the classifier that determines the category of any item- Mappings:
Namespace Name Mixin selector named getTopFive
Lnet/minecraft/server/world/ServerWorld;getTopFive(Ljava/lang/Iterable;Ljava/util/function/Function;)Ljava/lang/String;
intermediary method_31270
Lnet/minecraft/class_3218;method_31270(Ljava/lang/Iterable;Ljava/util/function/Function;)Ljava/lang/String;
official a
Larf;a(Ljava/lang/Iterable;Ljava/util/function/Function;)Ljava/lang/String;
-
createEndSpawnPlatform
- Mappings:
Namespace Name Mixin selector named createEndSpawnPlatform
Lnet/minecraft/server/world/ServerWorld;createEndSpawnPlatform(Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_29200
Lnet/minecraft/class_3218;method_29200(Lnet/minecraft/class_3218;)V
official a
Larf;a(Larf;)V
-
getEntityLookup
- Specified by:
getEntityLookup
in classWorld
- 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
Ldbz;G()Ldwm;
-
loadEntities
- Mappings:
Namespace Name Mixin selector named loadEntities
Lnet/minecraft/server/world/ServerWorld;loadEntities(Ljava/util/stream/Stream;)V
intermediary method_31423
Lnet/minecraft/class_3218;method_31423(Ljava/util/stream/Stream;)V
official a
Larf;a(Ljava/util/stream/Stream;)V
-
addEntities
- Mappings:
Namespace Name Mixin selector named addEntities
Lnet/minecraft/server/world/ServerWorld;addEntities(Ljava/util/stream/Stream;)V
intermediary method_31426
Lnet/minecraft/class_3218;method_31426(Ljava/util/stream/Stream;)V
official b
Larf;b(Ljava/util/stream/Stream;)V
-
disableTickSchedulers
- Mappings:
Namespace Name Mixin selector named disableTickSchedulers
Lnet/minecraft/server/world/ServerWorld;disableTickSchedulers(Lnet/minecraft/world/chunk/WorldChunk;)V
intermediary method_39223
Lnet/minecraft/class_3218;method_39223(Lnet/minecraft/class_2818;)V
official b
Larf;b(Lduj;)V
-
cacheStructures
- Mappings:
Namespace Name Mixin selector named cacheStructures
Lnet/minecraft/server/world/ServerWorld;cacheStructures(Lnet/minecraft/world/chunk/Chunk;)V
intermediary method_39778
Lnet/minecraft/class_3218;method_39778(Lnet/minecraft/class_2791;)V
official a
Larf;a(Ldtz;)V
-
getPathNodeTypeCache
- Mappings:
Namespace Name Mixin selector named getPathNodeTypeCache
Lnet/minecraft/server/world/ServerWorld;getPathNodeTypeCache()Lnet/minecraft/entity/ai/pathing/PathNodeTypeCache;
intermediary method_57133
Lnet/minecraft/class_3218;method_57133()Lnet/minecraft/class_9315;
official H
Larf;H()Leoo;
-
close
- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classWorld
- Throws:
IOException
-
asString
-
isChunkLoaded
public boolean isChunkLoaded(long chunkPos) Returnstrue
if the chunkchunkPos
is loaded.- Returns:
true
if the chunkchunkPos
is loaded- Mappings:
Namespace Name Mixin selector named isChunkLoaded
Lnet/minecraft/server/world/ServerWorld;isChunkLoaded(J)Z
intermediary method_37116
Lnet/minecraft/class_3218;method_37116(J)Z
official c
Larf;c(J)Z
-
isTickingFutureReady
private boolean isTickingFutureReady(long chunkPos) - Mappings:
Namespace Name Mixin selector named isTickingFutureReady
Lnet/minecraft/server/world/ServerWorld;isTickingFutureReady(J)Z
intermediary method_37117
Lnet/minecraft/class_3218;method_37117(J)Z
official d
Larf;d(J)Z
-
shouldTickEntity
Returns whether to tick entities atpos
.- Returns:
- whether to tick entities at
pos
- Mappings:
Namespace Name Mixin selector named shouldTickEntity
Lnet/minecraft/server/world/ServerWorld;shouldTickEntity(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_37118
Lnet/minecraft/class_3218;method_37118(Lnet/minecraft/class_2338;)Z
official f
Larf;f(Liz;)Z
-
shouldTick
- Mappings:
Namespace Name Mixin selector named shouldTick
Lnet/minecraft/server/world/ServerWorld;shouldTick(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_39999
Lnet/minecraft/class_3218;method_39999(Lnet/minecraft/class_2338;)Z
official g
Larf;g(Liz;)Z
-
shouldTick
- Mappings:
Namespace Name Mixin selector named shouldTick
Lnet/minecraft/server/world/ServerWorld;shouldTick(Lnet/minecraft/util/math/ChunkPos;)Z
intermediary method_39998
Lnet/minecraft/class_3218;method_39998(Lnet/minecraft/class_1923;)Z
official a
Larf;a(Ldbg;)Z
-
getEnabledFeatures
- Specified by:
getEnabledFeatures
in interfaceWorldView
- Mappings:
Namespace Name Mixin selector named getEnabledFeatures
Lnet/minecraft/world/WorldView;getEnabledFeatures()Lnet/minecraft/resource/featuretoggle/FeatureSet;
intermediary method_45162
Lnet/minecraft/class_4538;method_45162()Lnet/minecraft/class_7699;
official J
Ldcc;J()Lcpm;
-
getBrewingRecipeRegistry
- Specified by:
getBrewingRecipeRegistry
in classWorld
- 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
Ldbz;K()Lcwq;
-
getOrCreateRandom
- Mappings:
Namespace Name Mixin selector named getOrCreateRandom
Lnet/minecraft/server/world/ServerWorld;getOrCreateRandom(Lnet/minecraft/util/Identifier;)Lnet/minecraft/util/math/random/Random;
intermediary method_51836
Lnet/minecraft/class_3218;method_51836(Lnet/minecraft/class_2960;)Lnet/minecraft/class_5819;
official a
Larf;a(Lalf;)Lazh;
-
getRandomSequences
- Mappings:
Namespace Name Mixin selector named getRandomSequences
Lnet/minecraft/server/world/ServerWorld;getRandomSequences()Lnet/minecraft/util/math/random/RandomSequencesState;
intermediary method_52168
Lnet/minecraft/class_3218;method_52168()Lnet/minecraft/class_8565;
official L
Larf;L()Lbrc;
-
addDetailsToCrashReport
- Overrides:
addDetailsToCrashReport
in classWorld
- 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
Ldbz;a(Lo;)Lp;
-