Package net.minecraft.world.chunk
Class ChunkCache
java.lang.Object
net.minecraft.world.chunk.ChunkCache
- All Implemented Interfaces:
ChunkSource
- Mappings:
Namespace Name intermediary net/minecraft/class_326glue class_349server jbclient oknamed net/minecraft/world/chunk/ChunkCache
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate MapMap of Integer, Chunkprivate ListList of Chunkprivate SetSet of Integerprivate Chunkprivate ChunkSourceprivate ChunkStorageprivate World -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSave()voiddecorate(ChunkSource source, int x, int z) getChunk(int chunkX, int chunkZ) booleanisChunkLoaded(int x, int z) loadChunk(int chunkX, int chunkZ) private ChunkloadChunkFromStorage(int chunkX, int chunkZ) booleansave(boolean saveEntities, LoadingDisplay display) private voidprivate voidsaveEntities(Chunk chunk) booleantick()
-
Field Details
-
chunksToUnload
Set of Integer- Mappings:
Namespace Name Mixin selector intermediary field_1225Lnet/minecraft/class_326;field_1225:Ljava/util/Set;glue field_1420Lclass_349;field_1420:Ljava/util/Set;server aLjb;a:Ljava/util/Set;client aLok;a:Ljava/util/Set;named chunksToUnloadLnet/minecraft/world/chunk/ChunkCache;chunksToUnload:Ljava/util/Set;
-
empty
- Mappings:
Namespace Name Mixin selector intermediary field_1226Lnet/minecraft/class_326;field_1226:Lnet/minecraft/class_43;glue field_1421Lclass_349;field_1421:Lclass_279;server bLjb;b:Lhi;client bLok;b:Llm;named emptyLnet/minecraft/world/chunk/ChunkCache;empty:Lnet/minecraft/world/chunk/Chunk;
-
generator
- Mappings:
Namespace Name Mixin selector intermediary field_1227Lnet/minecraft/class_326;field_1227:Lnet/minecraft/class_51;glue field_1422Lclass_349;field_1422:Lclass_60;server cLjb;c:Lbl;client cLok;c:Lcl;named generatorLnet/minecraft/world/chunk/ChunkCache;generator:Lnet/minecraft/world/chunk/ChunkSource;
-
storage
- Mappings:
Namespace Name Mixin selector intermediary field_1228Lnet/minecraft/class_326;field_1228:Lnet/minecraft/class_243;glue field_1423Lclass_349;field_1423:Lclass_26;server dLjb;d:Lan;client dLok;d:Lbf;named storageLnet/minecraft/world/chunk/ChunkCache;storage:Lnet/minecraft/world/chunk/storage/ChunkStorage;
-
chunkByPos
Map of Integer, Chunk- Mappings:
Namespace Name Mixin selector intermediary field_1229Lnet/minecraft/class_326;field_1229:Ljava/util/Map;glue field_1424Lclass_349;field_1424:Ljava/util/Map;server eLjb;e:Ljava/util/Map;client eLok;e:Ljava/util/Map;named chunkByPosLnet/minecraft/world/chunk/ChunkCache;chunkByPos:Ljava/util/Map;
-
chunks
List of Chunk- Mappings:
Namespace Name Mixin selector intermediary field_1230Lnet/minecraft/class_326;field_1230:Ljava/util/List;glue field_1425Lclass_349;field_1425:Ljava/util/List;server fLjb;f:Ljava/util/List;client fLok;f:Ljava/util/List;named chunksLnet/minecraft/world/chunk/ChunkCache;chunks:Ljava/util/List;
-
world
- Mappings:
Namespace Name Mixin selector intermediary field_1231Lnet/minecraft/class_326;field_1231:Lnet/minecraft/class_18;glue field_1426Lclass_349;field_1426:Lclass_129;server gLjb;g:Ldj;client gLok;g:Lfd;named worldLnet/minecraft/world/chunk/ChunkCache;world:Lnet/minecraft/world/World;
-
-
Constructor Details
-
ChunkCache
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_326;<init>(Lnet/minecraft/class_18;Lnet/minecraft/class_243;Lnet/minecraft/class_51;)Vglue <init>Lclass_349;<init>(Lclass_129;Lclass_26;Lclass_60;)Vserver <init>Ljb;<init>(Ldj;Lan;Lbl;)Vclient <init>Lok;<init>(Lfd;Lbf;Lcl;)Vnamed <init>Lnet/minecraft/world/chunk/ChunkCache;<init>(Lnet/minecraft/world/World;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
-
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_1051Lnet/minecraft/class_326;method_1051(II)Lnet/minecraft/class_43;glue method_1413Lclass_349;method_1413(II)Lclass_279;server dLjb;d(II)Lhi;client dLok;d(II)Llm;named loadChunkFromStorageLnet/minecraft/world/chunk/ChunkCache;loadChunkFromStorage(II)Lnet/minecraft/world/chunk/Chunk;
-
saveEntities
- Mappings:
Namespace Name Mixin selector intermediary method_1049Lnet/minecraft/class_326;method_1049(Lnet/minecraft/class_43;)Vglue method_1411Lclass_349;method_1411(Lclass_279;)Vserver aLjb;a(Lhi;)Vclient aLok;a(Llm;)Vnamed saveEntitiesLnet/minecraft/world/chunk/ChunkCache;saveEntities(Lnet/minecraft/world/chunk/Chunk;)V
-
saveChunk
- Mappings:
Namespace Name Mixin selector intermediary method_1050Lnet/minecraft/class_326;method_1050(Lnet/minecraft/class_43;)Vglue method_1412Lclass_349;method_1412(Lclass_279;)Vserver bLjb;b(Lhi;)Vclient bLok;b(Llm;)Vnamed saveChunkLnet/minecraft/world/chunk/ChunkCache;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
-
getDebugInfo
- Specified by:
getDebugInfoin interfaceChunkSource- Mappings:
Namespace Name Mixin selector intermediary method_1808Lnet/minecraft/class_51;method_1808()Ljava/lang/String;glue method_296Lclass_60;method_296()Ljava/lang/String;server method_1808Lbl;method_1808()Ljava/lang/String;client cLcl;c()Ljava/lang/String;named getDebugInfoLnet/minecraft/world/chunk/ChunkSource;getDebugInfo()Ljava/lang/String;
-