Class WorldCache

java.lang.Object
org.geysermc.geyser.session.cache.WorldCache

public final class WorldCache extends Object
  • Constructor Details

  • 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

      public ScoreboardUpdater.ScoreboardSession getScoreboardSession()
    • getScoreboard

      public Scoreboard 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.