Class WorldCache
java.lang.Object
org.geysermc.geyser.session.cache.WorldCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidendPredictionsUpTo(int sequence)@NonNull org.geysermc.geyser.api.util.TriStateNOT_SET = not yet triggered FALSE = enforce-secure-profile is true but player hasn't chatted yet TRUE = enforce-secure-profile is enabled, and player has chatted and they have seen our message.com.github.steveice10.mc.protocol.data.game.setting.DifficultyintvoidmarkPositionInSequence(com.nukkitx.math.vector.Vector3i position)Stores a note that this position may need to be rolled back at a future point in time.voidintThis does not need to be called for all player action packets (as of 1.19.2) and can be set to 0 if blocks aren't changed in the action.voidvoidresetTitleTimes(boolean clientSync)Reset the true active title times to the (Java Edition 1.18.2) defaults.voidsetChatWarningSent(@NonNull org.geysermc.geyser.api.util.TriState chatWarningSent)NOT_SET = not yet triggered FALSE = enforce-secure-profile is true but player hasn't chatted yet TRUE = enforce-secure-profile is enabled, and player has chatted and they have seen our message.voidsetDifficulty(com.github.steveice10.mc.protocol.data.game.setting.Difficulty difficulty)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, int blockState)
-
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()This does not need to be called for all player action packets (as of 1.19.2) and can be set to 0 if blocks aren't changed in the action. -
markPositionInSequence
public void markPositionInSequence(com.nukkitx.math.vector.Vector3i position)Stores a note that this position may need to be rolled back at a future point in time. -
updateServerCorrectBlockState
public void updateServerCorrectBlockState(com.nukkitx.math.vector.Vector3i position, int blockState) -
endPredictionsUpTo
public void endPredictionsUpTo(int sequence) -
getScoreboardSession
-
getScoreboard
-
getDifficulty
public com.github.steveice10.mc.protocol.data.game.setting.Difficulty getDifficulty() -
setDifficulty
public void setDifficulty(com.github.steveice10.mc.protocol.data.game.setting.Difficulty difficulty) -
getChatWarningSent
public @NonNull org.geysermc.geyser.api.util.TriState getChatWarningSent()- NOT_SET = not yet triggered
- FALSE = enforce-secure-profile is true but player hasn't chatted yet
- TRUE = enforce-secure-profile is enabled, and player has chatted and they have seen our message.
-
setChatWarningSent
public void setChatWarningSent(@NonNull org.geysermc.geyser.api.util.TriState chatWarningSent)- NOT_SET = not yet triggered
- FALSE = enforce-secure-profile is true but player hasn't chatted yet
- TRUE = enforce-secure-profile is enabled, and player has chatted and they have seen our message.
-