Class ChunkCache
java.lang.Object
org.geysermc.geyser.session.cache.ChunkCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToCache(int x, int z, com.github.steveice10.mc.protocol.data.game.chunk.DataPalette[] chunks)voidclear()Manually clears all entries in the chunk cache.intgetBlockAt(int x, int y, int z)intintvoidremoveChunk(int chunkX, int chunkZ)voidupdateBlock(int x, int y, int z, int block)
-
Constructor Details
-
ChunkCache
-
-
Method Details
-
addToCache
public void addToCache(int x, int z, com.github.steveice10.mc.protocol.data.game.chunk.DataPalette[] chunks) -
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 sections in the event of proxy switches. -
getChunkMinY
public int getChunkMinY() -
getChunkHeightY
public int getChunkHeightY()
-