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.Which dimension Bedrock understands themselves to be in.intgetBlockAt(int x, int y, int z) intintvoidremoveChunk(int chunkX, int chunkZ) voidsetBedrockDimension(BedrockDimension bedrockDimension) Which dimension Bedrock understands themselves to be in.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, 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) -
getBedrockDimension
Which dimension Bedrock understands themselves to be in. -
setBedrockDimension
Which dimension Bedrock understands themselves to be in.
-