Class ChunkProviderClient

  • All Implemented Interfaces:
    IChunkProvider

    public class ChunkProviderClient
    extends java.lang.Object
    implements IChunkProvider
    + This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
    • Constructor Detail

      • ChunkProviderClient

        public ChunkProviderClient​(World worldIn)
    • Method Detail

      • chunkExists

        public boolean chunkExists​(int var1,
                                   int var2)
        + Checks to see if a chunk exists at x, z
        Specified by:
        chunkExists in interface IChunkProvider
      • unloadChunk

        public void unloadChunk​(int parInt1,
                                int parInt2)
        + Unload chunk from ChunkProviderClient's hashmap. Called in response to a Packet50PreChunk with its mode field set to false
      • loadChunk

        public Chunk loadChunk​(int parInt1,
                               int parInt2)
        + loads or generates the chunk at the chunk location specified
      • provideChunk

        public Chunk provideChunk​(int i,
                                  int j)
        + Will return back a chunk, if it doesn't exist and its not a MP client it will generates all the blocks for the specified chunk from the map seed and chunk seed
        Specified by:
        provideChunk in interface IChunkProvider
      • saveChunks

        public boolean saveChunks​(boolean var1,
                                  IProgressUpdate var2)
        + Two modes of operation: if passed true, save all Chunks in one go. If passed false, save up to two chunks. Return true if all chunks have been saved.
        Specified by:
        saveChunks in interface IChunkProvider
      • saveExtraData

        public void saveExtraData()
        + Save extra data not associated with any Chunk. Not saved during autosave, only during world unload. Currently unimplemented.
        Specified by:
        saveExtraData in interface IChunkProvider
      • unloadQueuedChunks

        public boolean unloadQueuedChunks()
        + Unloads chunks that are marked to be unloaded. This is not guaranteed to unload every such chunk.
        Specified by:
        unloadQueuedChunks in interface IChunkProvider
      • canSave

        public boolean canSave()
        + Returns if the IChunkProvider supports saving.
        Specified by:
        canSave in interface IChunkProvider
      • makeString

        public java.lang.String makeString()
        + Converts the instance data to a readable string.
        Specified by:
        makeString in interface IChunkProvider
      • provideChunk

        public Chunk provideChunk​(BlockPos blockpos)
        + Will return back a chunk, if it doesn't exist and its not a MP client it will generates all the blocks for the specified chunk from the map seed and chunk seed
        Specified by:
        provideChunk in interface IChunkProvider