Class ChunkCache
java.lang.Object
org.geysermc.connector.network.session.cache.ChunkCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToCache(com.github.steveice10.mc.protocol.data.game.chunk.Column chunk)voidclear()Manually clears all entries in the chunk cache.intgetBlockAt(int x, int y, int z)getChunk(int chunkX, int chunkZ)intintvoidremoveChunk(int chunkX, int chunkZ)voidupdateBlock(int x, int y, int z, int block)
-
Constructor Details
-
ChunkCache
-
-
Method Details
-
addToCache
public void addToCache(com.github.steveice10.mc.protocol.data.game.chunk.Column chunk) -
getChunk
-
updateBlock
public void updateBlock(int x, int y, int z, int block) -
getBlockAt
public int getBlockAt(int x, int y, int z) -
removeChunk
public void removeChunk(int chunkX, int chunkZ) -
clear
public void clear()Manually clears all entries in the chunk cache. The server is responsible for clearing chunk entries if out of render distance (for example) or switching dimensions, but it is the client that must clear chunks in the event of proxy switches. -
getChunkMinY
public int getChunkMinY() -
getChunkHeightY
public int getChunkHeightY()
-