Class ChunkCache

java.lang.Object
net.minecraft.world.chunk.ChunkCache
All Implemented Interfaces:
ChunkSource

public class ChunkCache extends Object implements ChunkSource
Mappings:
Namespace Name
intermediary net/minecraft/class_326
glue class_349
server jb
client ok
named net/minecraft/world/chunk/ChunkCache
  • Field Details

    • chunksToUnload

      private Set chunksToUnload
      Set of Integer
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1225 Lnet/minecraft/class_326;field_1225:Ljava/util/Set;
      glue field_1420 Lclass_349;field_1420:Ljava/util/Set;
      server a Ljb;a:Ljava/util/Set;
      client a Lok;a:Ljava/util/Set;
      named chunksToUnload Lnet/minecraft/world/chunk/ChunkCache;chunksToUnload:Ljava/util/Set;
    • empty

      private Chunk empty
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1226 Lnet/minecraft/class_326;field_1226:Lnet/minecraft/class_43;
      glue field_1421 Lclass_349;field_1421:Lclass_279;
      server b Ljb;b:Lhi;
      client b Lok;b:Llm;
      named empty Lnet/minecraft/world/chunk/ChunkCache;empty:Lnet/minecraft/world/chunk/Chunk;
    • generator

      private ChunkSource generator
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1227 Lnet/minecraft/class_326;field_1227:Lnet/minecraft/class_51;
      glue field_1422 Lclass_349;field_1422:Lclass_60;
      server c Ljb;c:Lbl;
      client c Lok;c:Lcl;
      named generator Lnet/minecraft/world/chunk/ChunkCache;generator:Lnet/minecraft/world/chunk/ChunkSource;
    • storage

      private ChunkStorage storage
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1228 Lnet/minecraft/class_326;field_1228:Lnet/minecraft/class_243;
      glue field_1423 Lclass_349;field_1423:Lclass_26;
      server d Ljb;d:Lan;
      client d Lok;d:Lbf;
      named storage Lnet/minecraft/world/chunk/ChunkCache;storage:Lnet/minecraft/world/chunk/storage/ChunkStorage;
    • chunkByPos

      private Map chunkByPos
      Map of Integer, Chunk
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1229 Lnet/minecraft/class_326;field_1229:Ljava/util/Map;
      glue field_1424 Lclass_349;field_1424:Ljava/util/Map;
      server e Ljb;e:Ljava/util/Map;
      client e Lok;e:Ljava/util/Map;
      named chunkByPos Lnet/minecraft/world/chunk/ChunkCache;chunkByPos:Ljava/util/Map;
    • chunks

      private List chunks
      List of Chunk
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1230 Lnet/minecraft/class_326;field_1230:Ljava/util/List;
      glue field_1425 Lclass_349;field_1425:Ljava/util/List;
      server f Ljb;f:Ljava/util/List;
      client f Lok;f:Ljava/util/List;
      named chunks Lnet/minecraft/world/chunk/ChunkCache;chunks:Ljava/util/List;
    • world

      private World world
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1231 Lnet/minecraft/class_326;field_1231:Lnet/minecraft/class_18;
      glue field_1426 Lclass_349;field_1426:Lclass_129;
      server g Ljb;g:Ldj;
      client g Lok;g:Lfd;
      named world Lnet/minecraft/world/chunk/ChunkCache;world:Lnet/minecraft/world/World;
  • Constructor Details

    • ChunkCache

      public ChunkCache(World world, ChunkStorage storage, ChunkSource generator)
      Mappings:
      Namespace Name Mixin selector
      intermediary <init> Lnet/minecraft/class_326;<init>(Lnet/minecraft/class_18;Lnet/minecraft/class_243;Lnet/minecraft/class_51;)V
      glue <init> Lclass_349;<init>(Lclass_129;Lclass_26;Lclass_60;)V
      server <init> Ljb;<init>(Ldj;Lan;Lbl;)V
      client <init> Lok;<init>(Lfd;Lbf;Lcl;)V
      named <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:
      isChunkLoaded in interface ChunkSource
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1802 Lnet/minecraft/class_51;method_1802(II)Z
      glue method_186 Lclass_60;method_186(II)Z
      server a Lbl;a(II)Z
      client a Lcl;a(II)Z
      named isChunkLoaded Lnet/minecraft/world/chunk/ChunkSource;isChunkLoaded(II)Z
    • loadChunk

      public Chunk loadChunk(int chunkX, int chunkZ)
      Specified by:
      loadChunk in interface ChunkSource
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1807 Lnet/minecraft/class_51;method_1807(II)Lnet/minecraft/class_43;
      glue method_191 Lclass_60;method_191(II)Lclass_279;
      server c Lbl;c(II)Lhi;
      client c Lcl;c(II)Llm;
      named loadChunk Lnet/minecraft/world/chunk/ChunkSource;loadChunk(II)Lnet/minecraft/world/chunk/Chunk;
    • getChunk

      public Chunk getChunk(int chunkX, int chunkZ)
      Specified by:
      getChunk in interface ChunkSource
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1806 Lnet/minecraft/class_51;method_1806(II)Lnet/minecraft/class_43;
      glue method_190 Lclass_60;method_190(II)Lclass_279;
      server b Lbl;b(II)Lhi;
      client b Lcl;b(II)Llm;
      named getChunk Lnet/minecraft/world/chunk/ChunkSource;getChunk(II)Lnet/minecraft/world/chunk/Chunk;
    • loadChunkFromStorage

      private Chunk loadChunkFromStorage(int chunkX, int chunkZ)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1051 Lnet/minecraft/class_326;method_1051(II)Lnet/minecraft/class_43;
      glue method_1413 Lclass_349;method_1413(II)Lclass_279;
      server d Ljb;d(II)Lhi;
      client d Lok;d(II)Llm;
      named loadChunkFromStorage Lnet/minecraft/world/chunk/ChunkCache;loadChunkFromStorage(II)Lnet/minecraft/world/chunk/Chunk;
    • saveEntities

      private void saveEntities(Chunk chunk)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1049 Lnet/minecraft/class_326;method_1049(Lnet/minecraft/class_43;)V
      glue method_1411 Lclass_349;method_1411(Lclass_279;)V
      server a Ljb;a(Lhi;)V
      client a Lok;a(Llm;)V
      named saveEntities Lnet/minecraft/world/chunk/ChunkCache;saveEntities(Lnet/minecraft/world/chunk/Chunk;)V
    • saveChunk

      private void saveChunk(Chunk chunk)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1050 Lnet/minecraft/class_326;method_1050(Lnet/minecraft/class_43;)V
      glue method_1412 Lclass_349;method_1412(Lclass_279;)V
      server b Ljb;b(Lhi;)V
      client b Lok;b(Llm;)V
      named saveChunk Lnet/minecraft/world/chunk/ChunkCache;saveChunk(Lnet/minecraft/world/chunk/Chunk;)V
    • decorate

      public void decorate(ChunkSource source, int x, int z)
      Specified by:
      decorate in interface ChunkSource
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1803 Lnet/minecraft/class_51;method_1803(Lnet/minecraft/class_51;II)V
      glue method_187 Lclass_60;method_187(Lclass_60;II)V
      server a Lbl;a(Lbl;II)V
      client a Lcl;a(Lcl;II)V
      named decorate Lnet/minecraft/world/chunk/ChunkSource;decorate(Lnet/minecraft/world/chunk/ChunkSource;II)V
    • save

      public boolean save(boolean saveEntities, LoadingDisplay display)
      Specified by:
      save in interface ChunkSource
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1804 Lnet/minecraft/class_51;method_1804(ZLnet/minecraft/class_62;)Z
      glue method_188 Lclass_60;method_188(ZLclass_595;)Z
      server a Lbl;a(ZLpj;)Z
      client a Lcl;a(ZLyb;)Z
      named save Lnet/minecraft/world/chunk/ChunkSource;save(ZLnet/minecraft/client/gui/screen/LoadingDisplay;)Z
    • tick

      public boolean tick()
      Specified by:
      tick in interface ChunkSource
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1801 Lnet/minecraft/class_51;method_1801()Z
      glue method_185 Lclass_60;method_185()Z
      server a Lbl;a()Z
      client a Lcl;a()Z
      named tick Lnet/minecraft/world/chunk/ChunkSource;tick()Z
    • canSave

      public boolean canSave()
      Specified by:
      canSave in interface ChunkSource
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1805 Lnet/minecraft/class_51;method_1805()Z
      glue method_189 Lclass_60;method_189()Z
      server b Lbl;b()Z
      client b Lcl;b()Z
      named canSave Lnet/minecraft/world/chunk/ChunkSource;canSave()Z
    • getDebugInfo

      @Environment(CLIENT) public String getDebugInfo()
      Specified by:
      getDebugInfo in interface ChunkSource
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1808 Lnet/minecraft/class_51;method_1808()Ljava/lang/String;
      glue method_296 Lclass_60;method_296()Ljava/lang/String;
      server method_1808 Lbl;method_1808()Ljava/lang/String;
      client c Lcl;c()Ljava/lang/String;
      named getDebugInfo Lnet/minecraft/world/chunk/ChunkSource;getDebugInfo()Ljava/lang/String;