Class WorldCache
java.lang.Object
org.geysermc.geyser.session.cache.WorldCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddServerCorrectBlockState(com.nukkitx.math.vector.Vector3i position, int blockState)Stores a record of a block at a certain position to rollback in the event it is incorrect.voidendPredictionsUpTo(int sequence)intvoidintvoidvoidresetTitleTimes(boolean clientSync)Reset the true active title times to the (Java Edition 1.18.2) defaults.voidsetTitleTimes(int fadeInTime, int stayTime, int fadeOutTime)Store the true active title times.voidIf needed, ensure that the Bedrock client will use the correct timings for titles.voidupdateServerCorrectBlockState(com.nukkitx.math.vector.Vector3i position)
-
Constructor Details
-
WorldCache
-
-
Method Details
-
removeScoreboard
public void removeScoreboard() -
increaseAndGetScoreboardPacketsPerSecond
public int increaseAndGetScoreboardPacketsPerSecond() -
markTitleTimesAsIncorrect
public void markTitleTimesAsIncorrect() -
setTitleTimes
public void setTitleTimes(int fadeInTime, int stayTime, int fadeOutTime)Store the true active title times. -
synchronizeCorrectTitleTimes
public void synchronizeCorrectTitleTimes()If needed, ensure that the Bedrock client will use the correct timings for titles. -
resetTitleTimes
public void resetTitleTimes(boolean clientSync)Reset the true active title times to the (Java Edition 1.18.2) defaults. -
nextPredictionSequence
public int nextPredictionSequence() -
addServerCorrectBlockState
public void addServerCorrectBlockState(com.nukkitx.math.vector.Vector3i position, int blockState)Stores a record of a block at a certain position to rollback in the event it is incorrect. -
updateServerCorrectBlockState
public void updateServerCorrectBlockState(com.nukkitx.math.vector.Vector3i position) -
endPredictionsUpTo
public void endPredictionsUpTo(int sequence)
-