Class WorldCache

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

public final class WorldCache extends Object
  • Constructor Details

  • Method Details

    • resetScoreboard

      public void resetScoreboard()
    • 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(org.cloudburstmc.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(org.cloudburstmc.math.vector.Vector3i position, int blockState)
    • endPredictionsUpTo

      public void endPredictionsUpTo(int sequence)
    • addActiveRecord

      public void addActiveRecord(org.cloudburstmc.math.vector.Vector3i pos, String bedrockPlaySound)
    • removeActiveRecord

      public @Nullable String removeActiveRecord(org.cloudburstmc.math.vector.Vector3i pos)
    • setCooldown

      public void setCooldown(net.kyori.adventure.key.Key cooldownGroup, int ticks)
    • hasCooldown

      public boolean hasCooldown(GeyserItemStack item)
    • tick

      public void tick()
    • getScoreboardSession

      public ScoreboardUpdater.ScoreboardSession getScoreboardSession()
    • getScoreboard

      public @NonNull Scoreboard getScoreboard()
    • getDifficulty

      public org.geysermc.mcprotocollib.protocol.data.game.setting.Difficulty getDifficulty()
    • setDifficulty

      public void setDifficulty(org.geysermc.mcprotocollib.protocol.data.game.setting.Difficulty difficulty)
    • isEditingSignOnFront

      public boolean isEditingSignOnFront()
    • setEditingSignOnFront

      public void setEditingSignOnFront(boolean editingSignOnFront)