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()
    • 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)