Class ChunkCache
java.lang.Object
org.geysermc.geyser.session.cache.ChunkCache
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addToCache(int x, int z, com.github.steveice10.mc.protocol.data.game.chunk.DataPalette[] chunks)
void
clear()
Manually clears all entries in the chunk cache.int
getBlockAt(int x, int y, int z)
int
int
boolean
Whether the Bedrock client believes they are in a world with a minimum of -64 and maximum of 320void
removeChunk(int chunkX, int chunkZ)
void
setExtendedHeight(boolean isExtendedHeight)
Whether the Bedrock client believes they are in a world with a minimum of -64 and maximum of 320void
setHeightY(int heightY)
void
setMinY(int minY)
void
updateBlock(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() -
setMinY
public void setMinY(int minY) -
setHeightY
public void setHeightY(int heightY) -
isExtendedHeight
public boolean isExtendedHeight()Whether the Bedrock client believes they are in a world with a minimum of -64 and maximum of 320 -
setExtendedHeight
public void setExtendedHeight(boolean isExtendedHeight)Whether the Bedrock client believes they are in a world with a minimum of -64 and maximum of 320
-