Package net.minecraft.client.multiplayer
Class ChunkProviderClient
- java.lang.Object
-
- net.minecraft.client.multiplayer.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 Summary
Constructors Constructor Description ChunkProviderClient(World worldIn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canSave()
+ Returns if the IChunkProvider supports saving.boolean
chunkExists(int var1, int var2)
+ Checks to see if a chunk exists at x, zboolean
func_177460_a(IChunkProvider var1, Chunk var2, int var3, int var4)
int
getLoadedChunkCount()
java.util.List<BiomeGenBase.SpawnListEntry>
getPossibleCreatures(EnumCreatureType var1, BlockPos var2)
BlockPos
getStrongholdGen(World var1, java.lang.String var2, BlockPos var3)
Chunk
loadChunk(int parInt1, int parInt2)
+ loads or generates the chunk at the chunk location specifiedjava.lang.String
makeString()
+ Converts the instance data to a readable string.void
populate(IChunkProvider var1, int var2, int var3)
+ Populates chunk with ores etc etcChunk
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 seedChunk
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 seedvoid
recreateStructures(Chunk var1, int var2, int var3)
boolean
saveChunks(boolean var1, IProgressUpdate var2)
+ Two modes of operation: if passed true, save all Chunks in one go.void
saveExtraData()
+ Save extra data not associated with any Chunk.void
unloadChunk(int parInt1, int parInt2)
+ Unload chunk from ChunkProviderClient's hashmap.boolean
unloadQueuedChunks()
+ Unloads chunks that are marked to be unloaded.
-
-
-
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 interfaceIChunkProvider
-
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 interfaceIChunkProvider
-
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 interfaceIChunkProvider
-
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 interfaceIChunkProvider
-
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 interfaceIChunkProvider
-
canSave
public boolean canSave()
+ Returns if the IChunkProvider supports saving.- Specified by:
canSave
in interfaceIChunkProvider
-
populate
public void populate(IChunkProvider var1, int var2, int var3)
+ Populates chunk with ores etc etc- Specified by:
populate
in interfaceIChunkProvider
-
func_177460_a
public boolean func_177460_a(IChunkProvider var1, Chunk var2, int var3, int var4)
- Specified by:
func_177460_a
in interfaceIChunkProvider
-
makeString
public java.lang.String makeString()
+ Converts the instance data to a readable string.- Specified by:
makeString
in interfaceIChunkProvider
-
getPossibleCreatures
public java.util.List<BiomeGenBase.SpawnListEntry> getPossibleCreatures(EnumCreatureType var1, BlockPos var2)
- Specified by:
getPossibleCreatures
in interfaceIChunkProvider
-
getStrongholdGen
public BlockPos getStrongholdGen(World var1, java.lang.String var2, BlockPos var3)
- Specified by:
getStrongholdGen
in interfaceIChunkProvider
-
getLoadedChunkCount
public int getLoadedChunkCount()
- Specified by:
getLoadedChunkCount
in interfaceIChunkProvider
-
recreateStructures
public void recreateStructures(Chunk var1, int var2, int var3)
- Specified by:
recreateStructures
in interfaceIChunkProvider
-
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 interfaceIChunkProvider
-
-