Class ChunkCache
java.lang.Object
org.geysermc.geyser.session.cache.ChunkCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToCache(int x, int z, org.geysermc.mcprotocollib.protocol.data.game.chunk.DataPalette[] chunks) voidclear()Manually clears all entries in the chunk cache.intgetBlockAt(int x, int y, int z) intintorg.geysermc.mcprotocollib.protocol.data.game.chunk.DataPalettegetChunkSection(int chunkX, int chunkY, int chunkZ, boolean createIfAbsent) Deprecated.booleanisCache()voidremoveChunk(int chunkX, int chunkZ) voidsetHeightY(int heightY) voidsetMinY(int minY) voidupdateBlock(int x, int y, int z, int block)
-
Constructor Details
-
ChunkCache
-
-
Method Details
-
addToCache
public void addToCache(int x, int z, org.geysermc.mcprotocollib.protocol.data.game.chunk.DataPalette[] chunks) -
getChunkSection
@Deprecated public org.geysermc.mcprotocollib.protocol.data.game.chunk.DataPalette getChunkSection(int chunkX, int chunkY, int chunkZ, boolean createIfAbsent) Deprecated.Doesn't check for cache enabled, so don't use this without checking that first! -
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() -
isCache
public boolean isCache() -
setMinY
public void setMinY(int minY) -
setHeightY
public void setHeightY(int heightY)
-