Package net.minecraft.server.world
Class ThreadedAnvilChunkStorage
java.lang.Object
net.minecraft.world.storage.VersionedChunkStorage
net.minecraft.server.world.ThreadedAnvilChunkStorage
- All Implemented Interfaces:
AutoCloseable
,ChunkHolder.PlayersWatchingChunkProvider
public class ThreadedAnvilChunkStorage extends VersionedChunkStorage implements ChunkHolder.PlayersWatchingChunkProvider
- Mappings:
Namespace Name official aai
intermediary net/minecraft/class_3898
named net/minecraft/server/world/ThreadedAnvilChunkStorage
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
ThreadedAnvilChunkStorage.EntityTracker
(package private) class
ThreadedAnvilChunkStorage.TicketManager
-
Field Summary
Fields inherited from class net.minecraft.world.storage.VersionedChunkStorage
dataFixer
-
Constructor Summary
Constructors Constructor Description ThreadedAnvilChunkStorage(ServerWorld serverWorld, LevelStorage.Session session, com.mojang.datafixers.DataFixer dataFixer, StructureManager structureManager, Executor executor, ThreadExecutor<Runnable> mainThreadExecutor, ChunkProvider chunkProvider, ChunkGenerator chunkGenerator, WorldGenerationProgressListener worldGenerationProgressListener, class_5567 class_5567, Supplier<PersistentStateManager> supplier, int int2, boolean bool)
-
Method Summary
Modifier and Type Method Description void
close()
private CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>>
convertToFullChunk(ChunkHolder chunkHolder)
private boolean
doesNotGenerateChunks(ServerPlayerEntity player)
(package private) void
dump(Writer writer)
CompletableFuture<Void>
enableTickSchedulers(WorldChunk worldChunk)
protected Iterable<ChunkHolder>
entryIterator()
private static int
getChebyshevDistance(ChunkPos pos, int x, int z)
private static int
getChebyshevDistance(ChunkPos pos, ServerPlayerEntity player, boolean useCameraPosition)
CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>>
getChunk(ChunkHolder holder, ChunkStatus requiredStatus)
protected ChunkHolder
getChunkHolder(long pos)
String
getChunkLoadingDebugInfo(ChunkPos chunkPos)
protected IntSupplier
getCompletedLevelSupplier(long pos)
protected ChunkHolder
getCurrentChunkHolder(long pos)
private static String
getFutureStatus(CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk,ChunkHolder.Unloaded>> completableFuture)
protected ServerLightingProvider
getLightProvider()
int
getLoadedChunkCount()
Stream<ServerPlayerEntity>
getPlayersWatchingChunk(ChunkPos chunkPos, boolean onlyOnWatchDistanceEdge)
protected PointOfInterestStorage
getPointOfInterestStorage()
private CompletableFuture<com.mojang.datafixers.util.Either<List<Chunk>,ChunkHolder.Unloaded>>
getRegion(ChunkPos centerChunk, int margin, IntFunction<ChunkStatus> distanceToStatus)
private ChunkStatus
getRequiredStatusForGeneration(ChunkStatus centerChunkTargetStatus, int distance)
private static double
getSquaredDistance(ChunkPos pos, Entity entity)
protected ChunkTicketManager
getTicketManager()
int
getTotalChunksLoadedCount()
private CompoundTag
getUpdatedChunkTag(ChunkPos pos)
(package private) void
handlePlayerAddedOrRemoved(ServerPlayerEntity player, boolean added)
(package private) boolean
isTooFarFromPlayersToSpawnMobs(ChunkPos chunkPos)
private CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>>
loadChunk(ChunkPos pos)
protected void
loadEntity(Entity entity)
CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk,ChunkHolder.Unloaded>>
makeChunkEntitiesTickable(ChunkPos pos)
CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk,ChunkHolder.Unloaded>>
makeChunkTickable(ChunkHolder holder)
private ChunkSectionPos
method_20726(ServerPlayerEntity serverPlayerEntity)
private byte
method_27053(ChunkPos chunkPos, ChunkStatus.ChunkType chunkType)
private void
method_27054(ChunkPos chunkPos)
private boolean
method_27055(ChunkPos chunkPos)
private static void
method_31413(ServerWorld serverWorld, List<CompoundTag> list)
(package private) void
method_31414(ChunkPos chunkPos, ChunkHolder.LevelType levelType)
CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk,ChunkHolder.Unloaded>>
method_31417(ChunkHolder chunkHolder)
protected void
releaseLightTicket(ChunkPos pos)
protected void
save(boolean flush)
private boolean
save(Chunk chunk)
private void
sendChunkDataPackets(ServerPlayerEntity player, Packet<?>[] packets, WorldChunk chunk)
protected void
sendToNearbyPlayers(Entity entity, Packet<?> packet)
protected void
sendToOtherNearbyPlayers(Entity entity, Packet<?> packet)
protected void
sendWatchPackets(ServerPlayerEntity player, ChunkPos pos, Packet<?>[] packets, boolean withinMaxWatchDistance, boolean withinViewDistance)
private ChunkHolder
setLevel(long pos, int level, ChunkHolder holder, int int2)
protected void
setViewDistance(int watchDistance)
protected void
tick(BooleanSupplier shouldKeepTicking)
protected void
tickPlayerMovement()
private void
tryUnloadChunk(long pos, ChunkHolder chunkHolder)
private void
unloadChunks(BooleanSupplier shouldKeepTicking)
protected void
unloadEntity(Entity entity)
void
updateCameraPosition(ServerPlayerEntity player)
protected boolean
updateHolderMap()
private CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>>
upgradeChunk(ChunkHolder holder, ChunkStatus requiredStatus)
Methods inherited from class net.minecraft.world.storage.VersionedChunkStorage
completeAll, getDataVersion, getNbt, setTagAt, updateChunkTag
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official c
Laai;c:Lorg/apache/logging/log4j/Logger;
intermediary field_17212
Lnet/minecraft/class_3898;field_17212:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;LOGGER:Lorg/apache/logging/log4j/Logger;
-
MAX_LEVEL
public static final int MAX_LEVELSpecifies the maximum ticket level a chunk can be before a chunk'sChunkHolder.LevelType
isChunkHolder.LevelType.BORDER
.- Mappings:
Namespace Name Mixin selector official a
Laai;a:I
intermediary field_18239
Lnet/minecraft/class_3898;field_18239:I
named MAX_LEVEL
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;MAX_LEVEL:I
-
currentChunkHolders
- Mappings:
Namespace Name Mixin selector official d
Laai;d:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
intermediary field_17213
Lnet/minecraft/class_3898;field_17213:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
named currentChunkHolders
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;currentChunkHolders:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
-
chunkHolders
- Mappings:
Namespace Name Mixin selector official e
Laai;e:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
intermediary field_17220
Lnet/minecraft/class_3898;field_17220:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
named chunkHolders
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;chunkHolders:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
-
chunksToUnload
- Mappings:
Namespace Name Mixin selector official f
Laai;f:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
intermediary field_18807
Lnet/minecraft/class_3898;field_18807:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
named chunksToUnload
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;chunksToUnload:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
-
loadedChunks
- Mappings:
Namespace Name Mixin selector official g
Laai;g:Lit/unimi/dsi/fastutil/longs/LongSet;
intermediary field_18307
Lnet/minecraft/class_3898;field_18307:Lit/unimi/dsi/fastutil/longs/LongSet;
named loadedChunks
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;loadedChunks:Lit/unimi/dsi/fastutil/longs/LongSet;
-
world
- Mappings:
Namespace Name Mixin selector official h
Laai;h:Laav;
intermediary field_17214
Lnet/minecraft/class_3898;field_17214:Lnet/minecraft/class_3218;
named world
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;world:Lnet/minecraft/server/world/ServerWorld;
-
serverLightingProvider
- Mappings:
Namespace Name Mixin selector official i
Laai;i:Laay;
intermediary field_17215
Lnet/minecraft/class_3898;field_17215:Lnet/minecraft/class_3227;
named serverLightingProvider
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;serverLightingProvider:Lnet/minecraft/server/world/ServerLightingProvider;
-
mainThreadExecutor
- Mappings:
Namespace Name Mixin selector official j
Laai;j:Laox;
intermediary field_17216
Lnet/minecraft/class_3898;field_17216:Lnet/minecraft/class_1255;
named mainThreadExecutor
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;mainThreadExecutor:Lnet/minecraft/util/thread/ThreadExecutor;
-
chunkGenerator
- Mappings:
Namespace Name Mixin selector official k
Laai;k:Lcjn;
intermediary field_17218
Lnet/minecraft/class_3898;field_17218:Lnet/minecraft/class_2794;
named chunkGenerator
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;chunkGenerator:Lnet/minecraft/world/gen/chunk/ChunkGenerator;
-
persistentStateManagerFactory
- Mappings:
Namespace Name Mixin selector official l
Laai;l:Ljava/util/function/Supplier;
intermediary field_17705
Lnet/minecraft/class_3898;field_17705:Ljava/util/function/Supplier;
named persistentStateManagerFactory
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;persistentStateManagerFactory:Ljava/util/function/Supplier;
-
pointOfInterestStorage
- Mappings:
Namespace Name Mixin selector official m
Laai;m:Lbay;
intermediary field_18808
Lnet/minecraft/class_3898;field_18808:Lnet/minecraft/class_4153;
named pointOfInterestStorage
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;pointOfInterestStorage:Lnet/minecraft/world/poi/PointOfInterestStorage;
-
unloadedChunks
- Mappings:
Namespace Name Mixin selector official n
Laai;n:Lit/unimi/dsi/fastutil/longs/LongSet;
intermediary field_17221
Lnet/minecraft/class_3898;field_17221:Lit/unimi/dsi/fastutil/longs/LongSet;
named unloadedChunks
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;unloadedChunks:Lit/unimi/dsi/fastutil/longs/LongSet;
-
chunkHolderListDirty
private boolean chunkHolderListDirty- Mappings:
Namespace Name Mixin selector official o
Laai;o:Z
intermediary field_17222
Lnet/minecraft/class_3898;field_17222:Z
named chunkHolderListDirty
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;chunkHolderListDirty:Z
-
chunkTaskPrioritySystem
- Mappings:
Namespace Name Mixin selector official p
Laai;p:Laak;
intermediary field_17223
Lnet/minecraft/class_3898;field_17223:Lnet/minecraft/class_3900;
named chunkTaskPrioritySystem
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;chunkTaskPrioritySystem:Lnet/minecraft/server/world/ChunkTaskPrioritySystem;
-
worldGenExecutor
- Mappings:
Namespace Name Mixin selector official q
Laai;q:Laoz;
intermediary field_17224
Lnet/minecraft/class_3898;field_17224:Lnet/minecraft/class_3906;
named worldGenExecutor
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;worldGenExecutor:Lnet/minecraft/util/thread/MessageListener;
-
mainExecutor
- Mappings:
Namespace Name Mixin selector official r
Laai;r:Laoz;
intermediary field_17226
Lnet/minecraft/class_3898;field_17226:Lnet/minecraft/class_3906;
named mainExecutor
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;mainExecutor:Lnet/minecraft/util/thread/MessageListener;
-
worldGenerationProgressListener
- Mappings:
Namespace Name Mixin selector official s
Laai;s:Labe;
intermediary field_17442
Lnet/minecraft/class_3898;field_17442:Lnet/minecraft/class_3949;
named worldGenerationProgressListener
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;worldGenerationProgressListener:Lnet/minecraft/server/WorldGenerationProgressListener;
-
field_26931
- Mappings:
Namespace Name Mixin selector official t
Laai;t:Lcla;
intermediary field_26931
Lnet/minecraft/class_3898;field_26931:Lnet/minecraft/class_5567;
named field_26931
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;field_26931:Lnet/minecraft/class_5567;
-
ticketManager
- Mappings:
Namespace Name Mixin selector official u
Laai;u:Laai$a;
intermediary field_17228
Lnet/minecraft/class_3898;field_17228:Lnet/minecraft/class_3898$class_3216;
named ticketManager
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;ticketManager:Lnet/minecraft/server/world/ThreadedAnvilChunkStorage$TicketManager;
-
totalChunksLoadedCount
- Mappings:
Namespace Name Mixin selector official v
Laai;v:Ljava/util/concurrent/atomic/AtomicInteger;
intermediary field_17230
Lnet/minecraft/class_3898;field_17230:Ljava/util/concurrent/atomic/AtomicInteger;
named totalChunksLoadedCount
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;totalChunksLoadedCount:Ljava/util/concurrent/atomic/AtomicInteger;
-
structureManager
- Mappings:
Namespace Name Mixin selector official w
Laai;w:Lcyj;
intermediary field_17706
Lnet/minecraft/class_3898;field_17706:Lnet/minecraft/class_3485;
named structureManager
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;structureManager:Lnet/minecraft/structure/StructureManager;
-
saveDir
- Mappings:
Namespace Name Mixin selector official x
Laai;x:Ljava/io/File;
intermediary field_17707
Lnet/minecraft/class_3898;field_17707:Ljava/io/File;
named saveDir
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;saveDir:Ljava/io/File;
-
playerChunkWatchingManager
- Mappings:
Namespace Name Mixin selector official y
Laai;y:Laap;
intermediary field_18241
Lnet/minecraft/class_3898;field_18241:Lnet/minecraft/class_3210;
named playerChunkWatchingManager
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;playerChunkWatchingManager:Lnet/minecraft/server/world/PlayerChunkWatchingManager;
-
entityTrackers
- Mappings:
Namespace Name Mixin selector official z
Laai;z:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
intermediary field_18242
Lnet/minecraft/class_3898;field_18242:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
named entityTrackers
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;entityTrackers:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
chunkToType
- Mappings:
Namespace Name Mixin selector official A
Laai;A:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;
intermediary field_23786
Lnet/minecraft/class_3898;field_23786:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;
named chunkToType
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;chunkToType:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;
-
unloadTaskQueue
- Mappings:
Namespace Name Mixin selector official B
Laai;B:Ljava/util/Queue;
intermediary field_19343
Lnet/minecraft/class_3898;field_19343:Ljava/util/Queue;
named unloadTaskQueue
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;unloadTaskQueue:Ljava/util/Queue;
-
watchDistance
private int watchDistance- Mappings:
Namespace Name Mixin selector official C
Laai;C:I
intermediary field_18243
Lnet/minecraft/class_3898;field_18243:I
named watchDistance
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;watchDistance:I
-
-
Constructor Details
-
ThreadedAnvilChunkStorage
public ThreadedAnvilChunkStorage(ServerWorld serverWorld, LevelStorage.Session session, com.mojang.datafixers.DataFixer dataFixer, StructureManager structureManager, Executor executor, ThreadExecutor<Runnable> mainThreadExecutor, ChunkProvider chunkProvider, ChunkGenerator chunkGenerator, WorldGenerationProgressListener worldGenerationProgressListener, class_5567 class_5567, Supplier<PersistentStateManager> supplier, int int2, boolean bool)- Mappings:
Namespace Name Mixin selector official <init>
Laai;<init>(Laav;Lddu$a;Lcom/mojang/datafixers/DataFixer;Lcyj;Ljava/util/concurrent/Executor;Laox;Lcjy;Lcjn;Labe;Lcla;Ljava/util/function/Supplier;IZ)V
intermediary <init>
Lnet/minecraft/class_3898;<init>(Lnet/minecraft/class_3218;Lnet/minecraft/class_32$class_5143;Lcom/mojang/datafixers/DataFixer;Lnet/minecraft/class_3485;Ljava/util/concurrent/Executor;Lnet/minecraft/class_1255;Lnet/minecraft/class_2823;Lnet/minecraft/class_2794;Lnet/minecraft/class_3949;Lnet/minecraft/class_5567;Ljava/util/function/Supplier;IZ)V
named <init>
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;<init>(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/level/storage/LevelStorage$Session;Lcom/mojang/datafixers/DataFixer;Lnet/minecraft/structure/StructureManager;Ljava/util/concurrent/Executor;Lnet/minecraft/util/thread/ThreadExecutor;Lnet/minecraft/world/chunk/ChunkProvider;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/server/WorldGenerationProgressListener;Lnet/minecraft/class_5567;Ljava/util/function/Supplier;IZ)V
-
-
Method Details
-
getSquaredDistance
- Mappings:
Namespace Name Mixin selector official a
Laai;a(Lbta;Laqv;)D
intermediary method_18704
Lnet/minecraft/class_3898;method_18704(Lnet/minecraft/class_1923;Lnet/minecraft/class_1297;)D
named getSquaredDistance
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getSquaredDistance(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/entity/Entity;)D
-
getChebyshevDistance
private static int getChebyshevDistance(ChunkPos pos, ServerPlayerEntity player, boolean useCameraPosition)- Mappings:
Namespace Name Mixin selector official a
Laai;a(Lbta;Laaw;Z)I
intermediary method_18719
Lnet/minecraft/class_3898;method_18719(Lnet/minecraft/class_1923;Lnet/minecraft/class_3222;Z)I
named getChebyshevDistance
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getChebyshevDistance(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/server/network/ServerPlayerEntity;Z)I
-
getChebyshevDistance
- Mappings:
Namespace Name Mixin selector official a
Laai;a(Lbta;II)I
intermediary method_18703
Lnet/minecraft/class_3898;method_18703(Lnet/minecraft/class_1923;II)I
named getChebyshevDistance
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getChebyshevDistance(Lnet/minecraft/util/math/ChunkPos;II)I
-
getLightProvider
- Mappings:
Namespace Name Mixin selector official a
Laai;a()Laay;
intermediary method_17212
Lnet/minecraft/class_3898;method_17212()Lnet/minecraft/class_3227;
named getLightProvider
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getLightProvider()Lnet/minecraft/server/world/ServerLightingProvider;
-
getCurrentChunkHolder
- Mappings:
Namespace Name Mixin selector official a
Laai;a(J)Laah;
intermediary method_17255
Lnet/minecraft/class_3898;method_17255(J)Lnet/minecraft/class_3193;
named getCurrentChunkHolder
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getCurrentChunkHolder(J)Lnet/minecraft/server/world/ChunkHolder;
-
getChunkHolder
- Mappings:
Namespace Name Mixin selector official b
Laai;b(J)Laah;
intermediary method_17216
Lnet/minecraft/class_3898;method_17216(J)Lnet/minecraft/class_3193;
named getChunkHolder
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getChunkHolder(J)Lnet/minecraft/server/world/ChunkHolder;
-
getCompletedLevelSupplier
- Mappings:
Namespace Name Mixin selector official c
Laai;c(J)Ljava/util/function/IntSupplier;
intermediary method_17604
Lnet/minecraft/class_3898;method_17604(J)Ljava/util/function/IntSupplier;
named getCompletedLevelSupplier
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getCompletedLevelSupplier(J)Ljava/util/function/IntSupplier;
-
getChunkLoadingDebugInfo
- Mappings:
Namespace Name Mixin selector official a
Laai;a(Lbta;)Ljava/lang/String;
intermediary method_23272
Lnet/minecraft/class_3898;method_23272(Lnet/minecraft/class_1923;)Ljava/lang/String;
named getChunkLoadingDebugInfo
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getChunkLoadingDebugInfo(Lnet/minecraft/util/math/ChunkPos;)Ljava/lang/String;
-
getRegion
private CompletableFuture<com.mojang.datafixers.util.Either<List<Chunk>,ChunkHolder.Unloaded>> getRegion(ChunkPos centerChunk, int margin, IntFunction<ChunkStatus> distanceToStatus)- Mappings:
Namespace Name Mixin selector official a
Laai;a(Lbta;ILjava/util/function/IntFunction;)Ljava/util/concurrent/CompletableFuture;
intermediary method_17220
Lnet/minecraft/class_3898;method_17220(Lnet/minecraft/class_1923;ILjava/util/function/IntFunction;)Ljava/util/concurrent/CompletableFuture;
named getRegion
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getRegion(Lnet/minecraft/util/math/ChunkPos;ILjava/util/function/IntFunction;)Ljava/util/concurrent/CompletableFuture;
-
makeChunkEntitiesTickable
public CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk,ChunkHolder.Unloaded>> makeChunkEntitiesTickable(ChunkPos pos)- Mappings:
Namespace Name Mixin selector official b
Laai;b(Lbta;)Ljava/util/concurrent/CompletableFuture;
intermediary method_17247
Lnet/minecraft/class_3898;method_17247(Lnet/minecraft/class_1923;)Ljava/util/concurrent/CompletableFuture;
named makeChunkEntitiesTickable
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;makeChunkEntitiesTickable(Lnet/minecraft/util/math/ChunkPos;)Ljava/util/concurrent/CompletableFuture;
-
setLevel
@Nullable private ChunkHolder setLevel(long pos, int level, @Nullable ChunkHolder holder, int int2)- Mappings:
Namespace Name Mixin selector official a
Laai;a(JILaah;I)Laah;
intermediary method_17217
Lnet/minecraft/class_3898;method_17217(JILnet/minecraft/class_3193;I)Lnet/minecraft/class_3193;
named setLevel
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;setLevel(JILnet/minecraft/server/world/ChunkHolder;I)Lnet/minecraft/server/world/ChunkHolder;
-
close
- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classVersionedChunkStorage
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official close
Lckj;close()V
intermediary close
Lnet/minecraft/class_3977;close()V
named close
Lnet/minecraft/world/storage/VersionedChunkStorage;close()V
-
save
protected void save(boolean flush)- Mappings:
Namespace Name Mixin selector official a
Laai;a(Z)V
intermediary method_17242
Lnet/minecraft/class_3898;method_17242(Z)V
named save
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;save(Z)V
-
tick
- Mappings:
Namespace Name Mixin selector official a
Laai;a(Ljava/util/function/BooleanSupplier;)V
intermediary method_17233
Lnet/minecraft/class_3898;method_17233(Ljava/util/function/BooleanSupplier;)V
named tick
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;tick(Ljava/util/function/BooleanSupplier;)V
-
unloadChunks
- Mappings:
Namespace Name Mixin selector official b
Laai;b(Ljava/util/function/BooleanSupplier;)V
intermediary method_20605
Lnet/minecraft/class_3898;method_20605(Ljava/util/function/BooleanSupplier;)V
named unloadChunks
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;unloadChunks(Ljava/util/function/BooleanSupplier;)V
-
tryUnloadChunk
- Mappings:
Namespace Name Mixin selector official a
Laai;a(JLaah;)V
intermediary method_20458
Lnet/minecraft/class_3898;method_20458(JLnet/minecraft/class_3193;)V
named tryUnloadChunk
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;tryUnloadChunk(JLnet/minecraft/server/world/ChunkHolder;)V
-
updateHolderMap
protected boolean updateHolderMap()- Mappings:
Namespace Name Mixin selector official b
Laai;b()Z
intermediary method_17244
Lnet/minecraft/class_3898;method_17244()Z
named updateHolderMap
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;updateHolderMap()Z
-
getChunk
public CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>> getChunk(ChunkHolder holder, ChunkStatus requiredStatus)- Mappings:
Namespace Name Mixin selector official a
Laai;a(Laah;Lcjp;)Ljava/util/concurrent/CompletableFuture;
intermediary method_17236
Lnet/minecraft/class_3898;method_17236(Lnet/minecraft/class_3193;Lnet/minecraft/class_2806;)Ljava/util/concurrent/CompletableFuture;
named getChunk
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getChunk(Lnet/minecraft/server/world/ChunkHolder;Lnet/minecraft/world/chunk/ChunkStatus;)Ljava/util/concurrent/CompletableFuture;
-
loadChunk
private CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>> loadChunk(ChunkPos pos)- Mappings:
Namespace Name Mixin selector official f
Laai;f(Lbta;)Ljava/util/concurrent/CompletableFuture;
intermediary method_20619
Lnet/minecraft/class_3898;method_20619(Lnet/minecraft/class_1923;)Ljava/util/concurrent/CompletableFuture;
named loadChunk
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;loadChunk(Lnet/minecraft/util/math/ChunkPos;)Ljava/util/concurrent/CompletableFuture;
-
method_27054
- Mappings:
Namespace Name Mixin selector official g
Laai;g(Lbta;)V
intermediary method_27054
Lnet/minecraft/class_3898;method_27054(Lnet/minecraft/class_1923;)V
named method_27054
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;method_27054(Lnet/minecraft/util/math/ChunkPos;)V
-
method_27053
- Mappings:
Namespace Name Mixin selector official a
Laai;a(Lbta;Lcjp$a;)B
intermediary method_27053
Lnet/minecraft/class_3898;method_27053(Lnet/minecraft/class_1923;Lnet/minecraft/class_2806$class_2808;)B
named method_27053
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;method_27053(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/chunk/ChunkStatus$ChunkType;)B
-
upgradeChunk
private CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>> upgradeChunk(ChunkHolder holder, ChunkStatus requiredStatus)- Mappings:
Namespace Name Mixin selector official b
Laai;b(Laah;Lcjp;)Ljava/util/concurrent/CompletableFuture;
intermediary method_20617
Lnet/minecraft/class_3898;method_20617(Lnet/minecraft/class_3193;Lnet/minecraft/class_2806;)Ljava/util/concurrent/CompletableFuture;
named upgradeChunk
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;upgradeChunk(Lnet/minecraft/server/world/ChunkHolder;Lnet/minecraft/world/chunk/ChunkStatus;)Ljava/util/concurrent/CompletableFuture;
-
releaseLightTicket
- Mappings:
Namespace Name Mixin selector official c
Laai;c(Lbta;)V
intermediary method_20441
Lnet/minecraft/class_3898;method_20441(Lnet/minecraft/class_1923;)V
named releaseLightTicket
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;releaseLightTicket(Lnet/minecraft/util/math/ChunkPos;)V
-
getRequiredStatusForGeneration
private ChunkStatus getRequiredStatusForGeneration(ChunkStatus centerChunkTargetStatus, int distance)- Mappings:
Namespace Name Mixin selector official a
Laai;a(Lcjp;I)Lcjp;
intermediary method_17229
Lnet/minecraft/class_3898;method_17229(Lnet/minecraft/class_2806;I)Lnet/minecraft/class_2806;
named getRequiredStatusForGeneration
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getRequiredStatusForGeneration(Lnet/minecraft/world/chunk/ChunkStatus;I)Lnet/minecraft/world/chunk/ChunkStatus;
-
method_31413
- Mappings:
Namespace Name Mixin selector official a
Laai;a(Laav;Ljava/util/List;)V
intermediary method_31413
Lnet/minecraft/class_3898;method_31413(Lnet/minecraft/class_3218;Ljava/util/List;)V
named method_31413
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;method_31413(Lnet/minecraft/server/world/ServerWorld;Ljava/util/List;)V
-
convertToFullChunk
private CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>> convertToFullChunk(ChunkHolder chunkHolder)- Mappings:
Namespace Name Mixin selector official c
Laai;c(Laah;)Ljava/util/concurrent/CompletableFuture;
intermediary method_17226
Lnet/minecraft/class_3898;method_17226(Lnet/minecraft/class_3193;)Ljava/util/concurrent/CompletableFuture;
named convertToFullChunk
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;convertToFullChunk(Lnet/minecraft/server/world/ChunkHolder;)Ljava/util/concurrent/CompletableFuture;
-
makeChunkTickable
public CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk,ChunkHolder.Unloaded>> makeChunkTickable(ChunkHolder holder)- Mappings:
Namespace Name Mixin selector official a
Laai;a(Laah;)Ljava/util/concurrent/CompletableFuture;
intermediary method_17235
Lnet/minecraft/class_3898;method_17235(Lnet/minecraft/class_3193;)Ljava/util/concurrent/CompletableFuture;
named makeChunkTickable
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;makeChunkTickable(Lnet/minecraft/server/world/ChunkHolder;)Ljava/util/concurrent/CompletableFuture;
-
method_31417
public CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk,ChunkHolder.Unloaded>> method_31417(ChunkHolder chunkHolder)- Mappings:
Namespace Name Mixin selector official b
Laai;b(Laah;)Ljava/util/concurrent/CompletableFuture;
intermediary method_31417
Lnet/minecraft/class_3898;method_31417(Lnet/minecraft/class_3193;)Ljava/util/concurrent/CompletableFuture;
named method_31417
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;method_31417(Lnet/minecraft/server/world/ChunkHolder;)Ljava/util/concurrent/CompletableFuture;
-
getTotalChunksLoadedCount
public int getTotalChunksLoadedCount()- Mappings:
Namespace Name Mixin selector official c
Laai;c()I
intermediary method_17253
Lnet/minecraft/class_3898;method_17253()I
named getTotalChunksLoadedCount
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getTotalChunksLoadedCount()I
-
save
- Mappings:
Namespace Name Mixin selector official a
Laai;a(Lcjl;)Z
intermediary method_17228
Lnet/minecraft/class_3898;method_17228(Lnet/minecraft/class_2791;)Z
named save
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;save(Lnet/minecraft/world/chunk/Chunk;)Z
-
method_27055
- Mappings:
Namespace Name Mixin selector official h
Laai;h(Lbta;)Z
intermediary method_27055
Lnet/minecraft/class_3898;method_27055(Lnet/minecraft/class_1923;)Z
named method_27055
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;method_27055(Lnet/minecraft/util/math/ChunkPos;)Z
-
setViewDistance
protected void setViewDistance(int watchDistance)- Mappings:
Namespace Name Mixin selector official a
Laai;a(I)V
intermediary method_17214
Lnet/minecraft/class_3898;method_17214(I)V
named setViewDistance
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;setViewDistance(I)V
-
sendWatchPackets
protected void sendWatchPackets(ServerPlayerEntity player, ChunkPos pos, Packet<?>[] packets, boolean withinMaxWatchDistance, boolean withinViewDistance)- Mappings:
Namespace Name Mixin selector official a
Laai;a(Laaw;Lbta;[Lpa;ZZ)V
intermediary method_17241
Lnet/minecraft/class_3898;method_17241(Lnet/minecraft/class_3222;Lnet/minecraft/class_1923;[Lnet/minecraft/class_2596;ZZ)V
named sendWatchPackets
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;sendWatchPackets(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/util/math/ChunkPos;[Lnet/minecraft/network/Packet;ZZ)V
-
getLoadedChunkCount
public int getLoadedChunkCount()- Mappings:
Namespace Name Mixin selector official d
Laai;d()I
intermediary method_17260
Lnet/minecraft/class_3898;method_17260()I
named getLoadedChunkCount
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getLoadedChunkCount()I
-
getTicketManager
- Mappings:
Namespace Name Mixin selector official e
Laai;e()Laao;
intermediary method_17263
Lnet/minecraft/class_3898;method_17263()Lnet/minecraft/class_3204;
named getTicketManager
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getTicketManager()Lnet/minecraft/server/world/ChunkTicketManager;
-
entryIterator
- Mappings:
Namespace Name Mixin selector official f
Laai;f()Ljava/lang/Iterable;
intermediary method_17264
Lnet/minecraft/class_3898;method_17264()Ljava/lang/Iterable;
named entryIterator
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;entryIterator()Ljava/lang/Iterable;
-
dump
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Laai;a(Ljava/io/Writer;)V
intermediary method_21619
Lnet/minecraft/class_3898;method_21619(Ljava/io/Writer;)V
named dump
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;dump(Ljava/io/Writer;)V
-
getFutureStatus
private static String getFutureStatus(CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk,ChunkHolder.Unloaded>> completableFuture)- Mappings:
Namespace Name Mixin selector official a
Laai;a(Ljava/util/concurrent/CompletableFuture;)Ljava/lang/String;
intermediary method_21676
Lnet/minecraft/class_3898;method_21676(Ljava/util/concurrent/CompletableFuture;)Ljava/lang/String;
named getFutureStatus
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getFutureStatus(Ljava/util/concurrent/CompletableFuture;)Ljava/lang/String;
-
getUpdatedChunkTag
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official i
Laai;i(Lbta;)Lmq;
intermediary method_17979
Lnet/minecraft/class_3898;method_17979(Lnet/minecraft/class_1923;)Lnet/minecraft/class_2487;
named getUpdatedChunkTag
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getUpdatedChunkTag(Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/nbt/CompoundTag;
-
isTooFarFromPlayersToSpawnMobs
- Mappings:
Namespace Name Mixin selector official d
Laai;d(Lbta;)Z
intermediary method_18724
Lnet/minecraft/class_3898;method_18724(Lnet/minecraft/class_1923;)Z
named isTooFarFromPlayersToSpawnMobs
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;isTooFarFromPlayersToSpawnMobs(Lnet/minecraft/util/math/ChunkPos;)Z
-
doesNotGenerateChunks
- Mappings:
Namespace Name Mixin selector official b
Laai;b(Laaw;)Z
intermediary method_18722
Lnet/minecraft/class_3898;method_18722(Lnet/minecraft/class_3222;)Z
named doesNotGenerateChunks
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;doesNotGenerateChunks(Lnet/minecraft/server/network/ServerPlayerEntity;)Z
-
handlePlayerAddedOrRemoved
- Mappings:
Namespace Name Mixin selector official a
Laai;a(Laaw;Z)V
intermediary method_18714
Lnet/minecraft/class_3898;method_18714(Lnet/minecraft/class_3222;Z)V
named handlePlayerAddedOrRemoved
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;handlePlayerAddedOrRemoved(Lnet/minecraft/server/network/ServerPlayerEntity;Z)V
-
method_20726
- Mappings:
Namespace Name Mixin selector official c
Laai;c(Laaw;)Lgq;
intermediary method_20726
Lnet/minecraft/class_3898;method_20726(Lnet/minecraft/class_3222;)Lnet/minecraft/class_4076;
named method_20726
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;method_20726(Lnet/minecraft/server/network/ServerPlayerEntity;)Lnet/minecraft/util/math/ChunkSectionPos;
-
updateCameraPosition
- Mappings:
Namespace Name Mixin selector official a
Laai;a(Laaw;)V
intermediary method_18713
Lnet/minecraft/class_3898;method_18713(Lnet/minecraft/class_3222;)V
named updateCameraPosition
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;updateCameraPosition(Lnet/minecraft/server/network/ServerPlayerEntity;)V
-
getPlayersWatchingChunk
public Stream<ServerPlayerEntity> getPlayersWatchingChunk(ChunkPos chunkPos, boolean onlyOnWatchDistanceEdge)- Specified by:
getPlayersWatchingChunk
in interfaceChunkHolder.PlayersWatchingChunkProvider
- Mappings:
Namespace Name Mixin selector official a
Laah$d;a(Lbta;Z)Ljava/util/stream/Stream;
intermediary method_17210
Lnet/minecraft/class_3193$class_3897;method_17210(Lnet/minecraft/class_1923;Z)Ljava/util/stream/Stream;
named getPlayersWatchingChunk
Lnet/minecraft/server/world/ChunkHolder$PlayersWatchingChunkProvider;getPlayersWatchingChunk(Lnet/minecraft/util/math/ChunkPos;Z)Ljava/util/stream/Stream;
-
loadEntity
- Mappings:
Namespace Name Mixin selector official a
Laai;a(Laqv;)V
intermediary method_18701
Lnet/minecraft/class_3898;method_18701(Lnet/minecraft/class_1297;)V
named loadEntity
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;loadEntity(Lnet/minecraft/entity/Entity;)V
-
unloadEntity
- Mappings:
Namespace Name Mixin selector official b
Laai;b(Laqv;)V
intermediary method_18716
Lnet/minecraft/class_3898;method_18716(Lnet/minecraft/class_1297;)V
named unloadEntity
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;unloadEntity(Lnet/minecraft/entity/Entity;)V
-
tickPlayerMovement
protected void tickPlayerMovement()- Mappings:
Namespace Name Mixin selector official g
Laai;g()V
intermediary method_18727
Lnet/minecraft/class_3898;method_18727()V
named tickPlayerMovement
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;tickPlayerMovement()V
-
sendToOtherNearbyPlayers
- Mappings:
Namespace Name Mixin selector official a
Laai;a(Laqv;Lpa;)V
intermediary method_18702
Lnet/minecraft/class_3898;method_18702(Lnet/minecraft/class_1297;Lnet/minecraft/class_2596;)V
named sendToOtherNearbyPlayers
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;sendToOtherNearbyPlayers(Lnet/minecraft/entity/Entity;Lnet/minecraft/network/Packet;)V
-
sendToNearbyPlayers
- Mappings:
Namespace Name Mixin selector official b
Laai;b(Laqv;Lpa;)V
intermediary method_18717
Lnet/minecraft/class_3898;method_18717(Lnet/minecraft/class_1297;Lnet/minecraft/class_2596;)V
named sendToNearbyPlayers
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;sendToNearbyPlayers(Lnet/minecraft/entity/Entity;Lnet/minecraft/network/Packet;)V
-
sendChunkDataPackets
private void sendChunkDataPackets(ServerPlayerEntity player, Packet<?>[] packets, WorldChunk chunk)- Mappings:
Namespace Name Mixin selector official a
Laai;a(Laaw;[Lpa;Lcjw;)V
intermediary method_18715
Lnet/minecraft/class_3898;method_18715(Lnet/minecraft/class_3222;[Lnet/minecraft/class_2596;Lnet/minecraft/class_2818;)V
named sendChunkDataPackets
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;sendChunkDataPackets(Lnet/minecraft/server/network/ServerPlayerEntity;[Lnet/minecraft/network/Packet;Lnet/minecraft/world/chunk/WorldChunk;)V
-
getPointOfInterestStorage
- Mappings:
Namespace Name Mixin selector official h
Laai;h()Lbay;
intermediary method_19488
Lnet/minecraft/class_3898;method_19488()Lnet/minecraft/class_4153;
named getPointOfInterestStorage
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;getPointOfInterestStorage()Lnet/minecraft/world/poi/PointOfInterestStorage;
-
enableTickSchedulers
- Mappings:
Namespace Name Mixin selector official a
Laai;a(Lcjw;)Ljava/util/concurrent/CompletableFuture;
intermediary method_20576
Lnet/minecraft/class_3898;method_20576(Lnet/minecraft/class_2818;)Ljava/util/concurrent/CompletableFuture;
named enableTickSchedulers
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;enableTickSchedulers(Lnet/minecraft/world/chunk/WorldChunk;)Ljava/util/concurrent/CompletableFuture;
-
method_31414
- Mappings:
Namespace Name Mixin selector official a
Laai;a(Lbta;Laah$b;)V
intermediary method_31414
Lnet/minecraft/class_3898;method_31414(Lnet/minecraft/class_1923;Lnet/minecraft/class_3193$class_3194;)V
named method_31414
Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;method_31414(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/server/world/ChunkHolder$LevelType;)V
-