Class PendingUpdateManager1_18_2
java.lang.Object
net.minecraft.client.multiplayer.prediction.BlockStatePredictionHandler
com.viaversion.viafabricplus.features.world.disable_sequencing.PendingUpdateManager1_18_2
- All Implemented Interfaces:
AutoCloseable
public final class PendingUpdateManager1_18_2
extends net.minecraft.client.multiplayer.prediction.BlockStatePredictionHandler
No-op implementation of
BlockStatePredictionHandler for 1.18.2 and lower since those versions don't have the
BlockStatePredictionHandler class.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intvoidendPredictionsUpTo(int maxProcessableSequence, net.minecraft.client.multiplayer.ClientLevel world) booleanvoidretainKnownServerState(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.client.player.LocalPlayer player) net.minecraft.client.multiplayer.prediction.BlockStatePredictionHandlerbooleanupdateKnownServerState(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
Constructor Details
-
PendingUpdateManager1_18_2
public PendingUpdateManager1_18_2()
-
-
Method Details
-
retainKnownServerState
public void retainKnownServerState(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.client.player.LocalPlayer player) - Overrides:
retainKnownServerStatein classnet.minecraft.client.multiplayer.prediction.BlockStatePredictionHandler
-
updateKnownServerState
public boolean updateKnownServerState(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) - Overrides:
updateKnownServerStatein classnet.minecraft.client.multiplayer.prediction.BlockStatePredictionHandler
-
endPredictionsUpTo
public void endPredictionsUpTo(int maxProcessableSequence, net.minecraft.client.multiplayer.ClientLevel world) - Overrides:
endPredictionsUpToin classnet.minecraft.client.multiplayer.prediction.BlockStatePredictionHandler
-
startPredicting
public net.minecraft.client.multiplayer.prediction.BlockStatePredictionHandler startPredicting()- Overrides:
startPredictingin classnet.minecraft.client.multiplayer.prediction.BlockStatePredictionHandler
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classnet.minecraft.client.multiplayer.prediction.BlockStatePredictionHandler
-
currentSequence
public int currentSequence()- Overrides:
currentSequencein classnet.minecraft.client.multiplayer.prediction.BlockStatePredictionHandler
-
isPredicting
public boolean isPredicting()- Overrides:
isPredictingin classnet.minecraft.client.multiplayer.prediction.BlockStatePredictionHandler
-