97 lines
3.1 KiB
Java
97 lines
3.1 KiB
Java
package net.minecraft.world.chunk;
|
|
|
|
import java.util.List;
|
|
|
|
import net.minecraft.entity.EnumCreatureType;
|
|
import net.minecraft.util.BlockPos;
|
|
import net.minecraft.util.IProgressUpdate;
|
|
import net.minecraft.world.World;
|
|
import net.minecraft.world.biome.BiomeGenBase;
|
|
|
|
/**+
|
|
* 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 (c) 2022-2024 lax1dude, ayunami2000. All Rights Reserved.
|
|
*
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
|
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
* POSSIBILITY OF SUCH DAMAGE.
|
|
*
|
|
*/
|
|
public interface IChunkProvider {
|
|
/**+
|
|
* Checks to see if a chunk exists at x, z
|
|
*/
|
|
boolean chunkExists(int var1, int var2);
|
|
|
|
/**+
|
|
* 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
|
|
*/
|
|
Chunk provideChunk(int var1, int var2);
|
|
|
|
Chunk getLoadedChunk(int var1, int var2);
|
|
|
|
/**+
|
|
* 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
|
|
*/
|
|
Chunk provideChunk(BlockPos var1);
|
|
|
|
/**+
|
|
* Populates chunk with ores etc etc
|
|
*/
|
|
void populate(IChunkProvider var1, int var2, int var3);
|
|
|
|
boolean func_177460_a(IChunkProvider var1, Chunk var2, int var3, int var4);
|
|
|
|
/**+
|
|
* 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.
|
|
*/
|
|
boolean saveChunks(boolean var1, IProgressUpdate var2);
|
|
|
|
/**+
|
|
* Unloads chunks that are marked to be unloaded. This is not
|
|
* guaranteed to unload every such chunk.
|
|
*/
|
|
boolean unloadQueuedChunks();
|
|
|
|
/**+
|
|
* Returns if the IChunkProvider supports saving.
|
|
*/
|
|
boolean canSave();
|
|
|
|
/**+
|
|
* Converts the instance data to a readable string.
|
|
*/
|
|
String makeString();
|
|
|
|
List<BiomeGenBase.SpawnListEntry> getPossibleCreatures(EnumCreatureType var1, BlockPos var2);
|
|
|
|
BlockPos getStrongholdGen(World var1, String var2, BlockPos var3);
|
|
|
|
int getLoadedChunkCount();
|
|
|
|
void recreateStructures(Chunk var1, int var2, int var3);
|
|
|
|
/**+
|
|
* Save extra data not associated with any Chunk. Not saved
|
|
* during autosave, only during world unload. Currently
|
|
* unimplemented.
|
|
*/
|
|
void saveExtraData();
|
|
} |