Class WorldCache
java.lang.Object
org.geysermc.geyser.session.cache.WorldCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddActiveRecord(org.cloudburstmc.math.vector.Vector3i pos, String bedrockPlaySound) voidendPredictionsUpTo(int sequence) org.geysermc.mcprotocollib.protocol.data.game.setting.Difficulty@NonNull ScoreboardbooleanhasCooldown(GeyserItemStack item) intbooleanbooleanvoidmarkPositionInSequence(org.cloudburstmc.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.@Nullable StringremoveActiveRecord(org.cloudburstmc.math.vector.Vector3i pos) voidremovePrediction(org.cloudburstmc.math.vector.Vector3i position) voidvoidresetTitleTimes(boolean clientSync) Reset the true active title times to the (Java Edition 1.18.2) defaults.voidsetCooldown(net.kyori.adventure.key.Key cooldownGroup, int ticks) voidsetDifficulty(org.geysermc.mcprotocollib.protocol.data.game.setting.Difficulty difficulty) voidsetEditingSignOnFront(boolean editingSignOnFront) 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.voidtick()voidupdateServerCorrectBlockState(org.cloudburstmc.math.vector.Vector3i position, int blockState)
-
Constructor Details
-
WorldCache
-
-
Method Details
-
resetScoreboard
public void resetScoreboard() -
increaseAndGetScoreboardPacketsPerSecond
public int increaseAndGetScoreboardPacketsPerSecond() -
isTitleTimesIncorrect
public boolean isTitleTimesIncorrect() -
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) -
removePrediction
public void removePrediction(org.cloudburstmc.math.vector.Vector3i position) -
endPredictionsUpTo
public void endPredictionsUpTo(int sequence) -
addActiveRecord
-
removeActiveRecord
-
setCooldown
public void setCooldown(net.kyori.adventure.key.Key cooldownGroup, int ticks) -
hasCooldown
-
tick
public void tick() -
getScoreboardSession
-
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)
-