Package net.minecraft.server.world.chunk
Class ServerChunkCache
java.lang.Object
net.minecraft.server.world.chunk.ServerChunkCache
- All Implemented Interfaces:
ChunkSource
- Mappings:
Namespace Name intermediary net/minecraft/class_79glue class_273server heclient net/minecraft/class_79named net/minecraft/server/world/chunk/ServerChunkCache
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ListList of Chunk, all loaded chunksprivate MapMap of Integer, Chunk, all loaded chunks by chunk positionprivate SetSet of Integer, queue of chunks to unloadprivate Chunkbooleanprivate ChunkSourceprivate ChunkStorageprivate ServerWorld -
Constructor Summary
ConstructorsConstructorDescriptionServerChunkCache(ServerWorld world, ChunkStorage storage, ChunkSource generator) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSave()voiddecorate(ChunkSource source, int x, int z) getChunk(int chunkX, int chunkZ) booleanisChunkLoaded(int x, int z) voidisLoaded(int chunkX, int chunkZ) loadChunk(int chunkX, int chunkZ) private ChunkloadChunkFromStorage(int chunkX, int chunkZ) booleansave(boolean saveEntities, LoadingDisplay display) private voidprivate voidsaveEntities(Chunk chunk) booleantick()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.chunk.ChunkSource
getDebugInfo
-
Field Details
-
chunksToUnload
Set of Integer, queue of chunks to unload- Mappings:
Namespace Name Mixin selector intermediary field_934Lnet/minecraft/class_79;field_934:Ljava/util/Set;glue field_1135Lclass_273;field_1135:Ljava/util/Set;server bLhe;b:Ljava/util/Set;client field_934Lnet/minecraft/class_79;field_934:Ljava/util/Set;named chunksToUnloadLnet/minecraft/server/world/chunk/ServerChunkCache;chunksToUnload:Ljava/util/Set;
-
empty
- Mappings:
Namespace Name Mixin selector intermediary field_935Lnet/minecraft/class_79;field_935:Lnet/minecraft/class_43;glue field_1136Lclass_273;field_1136:Lclass_279;server cLhe;c:Lhi;client field_935Lnet/minecraft/class_79;field_935:Llm;named emptyLnet/minecraft/server/world/chunk/ServerChunkCache;empty:Lnet/minecraft/world/chunk/Chunk;
-
generator
- Mappings:
Namespace Name Mixin selector intermediary field_936Lnet/minecraft/class_79;field_936:Lnet/minecraft/class_51;glue field_1137Lclass_273;field_1137:Lclass_60;server dLhe;d:Lbl;client field_936Lnet/minecraft/class_79;field_936:Lcl;named generatorLnet/minecraft/server/world/chunk/ServerChunkCache;generator:Lnet/minecraft/world/chunk/ChunkSource;
-
storage
- Mappings:
Namespace Name Mixin selector intermediary field_937Lnet/minecraft/class_79;field_937:Lnet/minecraft/class_243;glue field_1138Lclass_273;field_1138:Lclass_26;server eLhe;e:Lan;client field_937Lnet/minecraft/class_79;field_937:Lbf;named storageLnet/minecraft/server/world/chunk/ServerChunkCache;storage:Lnet/minecraft/world/chunk/storage/ChunkStorage;
-
forceLoad
public boolean forceLoad- Mappings:
Namespace Name Mixin selector intermediary field_933Lnet/minecraft/class_79;field_933:Zglue field_1134Lclass_273;field_1134:Zserver aLhe;a:Zclient field_933Lnet/minecraft/class_79;field_933:Znamed forceLoadLnet/minecraft/server/world/chunk/ServerChunkCache;forceLoad:Z
-
chunksByPos
Map of Integer, Chunk, all loaded chunks by chunk position- Mappings:
Namespace Name Mixin selector intermediary field_938Lnet/minecraft/class_79;field_938:Ljava/util/Map;glue field_1139Lclass_273;field_1139:Ljava/util/Map;server fLhe;f:Ljava/util/Map;client field_938Lnet/minecraft/class_79;field_938:Ljava/util/Map;named chunksByPosLnet/minecraft/server/world/chunk/ServerChunkCache;chunksByPos:Ljava/util/Map;
-
chunks
List of Chunk, all loaded chunks- Mappings:
Namespace Name Mixin selector intermediary field_939Lnet/minecraft/class_79;field_939:Ljava/util/List;glue field_1140Lclass_273;field_1140:Ljava/util/List;server gLhe;g:Ljava/util/List;client field_939Lnet/minecraft/class_79;field_939:Ljava/util/List;named chunksLnet/minecraft/server/world/chunk/ServerChunkCache;chunks:Ljava/util/List;
-
world
- Mappings:
Namespace Name Mixin selector intermediary field_940Lnet/minecraft/class_79;field_940:Lnet/minecraft/class_73;glue field_1141Lclass_273;field_1141:Lclass_137;server hLhe;h:Ldp;client field_940Lnet/minecraft/class_79;field_940:Lnet/minecraft/class_73;named worldLnet/minecraft/server/world/chunk/ServerChunkCache;world:Lnet/minecraft/world/ServerWorld;
-
-
Constructor Details
-
ServerChunkCache
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_79;<init>(Lnet/minecraft/class_73;Lnet/minecraft/class_243;Lnet/minecraft/class_51;)Vglue <init>Lclass_273;<init>(Lclass_137;Lclass_26;Lclass_60;)Vserver <init>Lhe;<init>(Ldp;Lan;Lbl;)Vclient <init>Lnet/minecraft/class_79;<init>(Lnet/minecraft/class_73;Lbf;Lcl;)Vnamed <init>Lnet/minecraft/server/world/chunk/ServerChunkCache;<init>(Lnet/minecraft/world/ServerWorld;Lnet/minecraft/world/chunk/storage/ChunkStorage;Lnet/minecraft/world/chunk/ChunkSource;)V
-
-
Method Details
-
isChunkLoaded
public boolean isChunkLoaded(int x, int z) - Specified by:
isChunkLoadedin interfaceChunkSource- Mappings:
Namespace Name Mixin selector intermediary method_1802Lnet/minecraft/class_51;method_1802(II)Zglue method_186Lclass_60;method_186(II)Zserver aLbl;a(II)Zclient aLcl;a(II)Znamed isChunkLoadedLnet/minecraft/world/chunk/ChunkSource;isChunkLoaded(II)Z
-
isLoaded
public void isLoaded(int chunkX, int chunkZ) - Mappings:
Namespace Name Mixin selector intermediary method_850Lnet/minecraft/class_79;method_850(II)Vglue method_1240Lclass_273;method_1240(II)Vserver dLhe;d(II)Vclient method_850Lnet/minecraft/class_79;method_850(II)Vnamed isLoadedLnet/minecraft/server/world/chunk/ServerChunkCache;isLoaded(II)V
-
loadChunk
- Specified by:
loadChunkin interfaceChunkSource- Mappings:
Namespace Name Mixin selector intermediary method_1807Lnet/minecraft/class_51;method_1807(II)Lnet/minecraft/class_43;glue method_191Lclass_60;method_191(II)Lclass_279;server cLbl;c(II)Lhi;client cLcl;c(II)Llm;named loadChunkLnet/minecraft/world/chunk/ChunkSource;loadChunk(II)Lnet/minecraft/world/chunk/Chunk;
-
getChunk
- Specified by:
getChunkin interfaceChunkSource- Mappings:
Namespace Name Mixin selector intermediary method_1806Lnet/minecraft/class_51;method_1806(II)Lnet/minecraft/class_43;glue method_190Lclass_60;method_190(II)Lclass_279;server bLbl;b(II)Lhi;client bLcl;b(II)Llm;named getChunkLnet/minecraft/world/chunk/ChunkSource;getChunk(II)Lnet/minecraft/world/chunk/Chunk;
-
loadChunkFromStorage
- Mappings:
Namespace Name Mixin selector intermediary method_851Lnet/minecraft/class_79;method_851(II)Lnet/minecraft/class_43;glue method_1241Lclass_273;method_1241(II)Lclass_279;server eLhe;e(II)Lhi;client method_851Lnet/minecraft/class_79;method_851(II)Llm;named loadChunkFromStorageLnet/minecraft/server/world/chunk/ServerChunkCache;loadChunkFromStorage(II)Lnet/minecraft/world/chunk/Chunk;
-
saveEntities
- Mappings:
Namespace Name Mixin selector intermediary method_848Lnet/minecraft/class_79;method_848(Lnet/minecraft/class_43;)Vglue method_1238Lclass_273;method_1238(Lclass_279;)Vserver aLhe;a(Lhi;)Vclient method_848Lnet/minecraft/class_79;method_848(Llm;)Vnamed saveEntitiesLnet/minecraft/server/world/chunk/ServerChunkCache;saveEntities(Lnet/minecraft/world/chunk/Chunk;)V
-
saveChunk
- Mappings:
Namespace Name Mixin selector intermediary method_849Lnet/minecraft/class_79;method_849(Lnet/minecraft/class_43;)Vglue method_1239Lclass_273;method_1239(Lclass_279;)Vserver bLhe;b(Lhi;)Vclient method_849Lnet/minecraft/class_79;method_849(Llm;)Vnamed saveChunkLnet/minecraft/server/world/chunk/ServerChunkCache;saveChunk(Lnet/minecraft/world/chunk/Chunk;)V
-
decorate
- Specified by:
decoratein interfaceChunkSource- Mappings:
Namespace Name Mixin selector intermediary method_1803Lnet/minecraft/class_51;method_1803(Lnet/minecraft/class_51;II)Vglue method_187Lclass_60;method_187(Lclass_60;II)Vserver aLbl;a(Lbl;II)Vclient aLcl;a(Lcl;II)Vnamed decorateLnet/minecraft/world/chunk/ChunkSource;decorate(Lnet/minecraft/world/chunk/ChunkSource;II)V
-
save
- Specified by:
savein interfaceChunkSource- Mappings:
Namespace Name Mixin selector intermediary method_1804Lnet/minecraft/class_51;method_1804(ZLnet/minecraft/class_62;)Zglue method_188Lclass_60;method_188(ZLclass_595;)Zserver aLbl;a(ZLpj;)Zclient aLcl;a(ZLyb;)Znamed saveLnet/minecraft/world/chunk/ChunkSource;save(ZLnet/minecraft/client/gui/screen/LoadingDisplay;)Z
-
tick
public boolean tick()- Specified by:
tickin interfaceChunkSource- Mappings:
Namespace Name Mixin selector intermediary method_1801Lnet/minecraft/class_51;method_1801()Zglue method_185Lclass_60;method_185()Zserver aLbl;a()Zclient aLcl;a()Znamed tickLnet/minecraft/world/chunk/ChunkSource;tick()Z
-
canSave
public boolean canSave()- Specified by:
canSavein interfaceChunkSource- Mappings:
Namespace Name Mixin selector intermediary method_1805Lnet/minecraft/class_51;method_1805()Zglue method_189Lclass_60;method_189()Zserver bLbl;b()Zclient bLcl;b()Znamed canSaveLnet/minecraft/world/chunk/ChunkSource;canSave()Z
-