Class BlockStatePredictionHandler
java.lang.Object
net.minecraft.client.multiplayer.prediction.BlockStatePredictionHandler
- All Implemented Interfaces:
- AutoCloseable
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescription(package private) static class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate intprivate booleanprivate final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<BlockStatePredictionHandler.ServerVerifiedState>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()intvoidendPredictionsUpTo(int p_233857_, ClientLevel p_233858_) booleanvoidretainKnownServerState(BlockPos p_233868_, BlockState p_233869_, LocalPlayer p_233870_) booleanupdateKnownServerState(BlockPos p_233865_, BlockState p_233866_) 
- 
Field Details- 
serverVerifiedStatesprivate final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<BlockStatePredictionHandler.ServerVerifiedState> serverVerifiedStates
- 
currentSequenceNrprivate int currentSequenceNr
- 
isPredictingprivate boolean isPredicting
 
- 
- 
Constructor Details- 
BlockStatePredictionHandlerpublic BlockStatePredictionHandler()
 
- 
- 
Method Details- 
retainKnownServerState
- 
updateKnownServerState
- 
endPredictionsUpTo
- 
startPredicting
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
 
- 
currentSequencepublic int currentSequence()
- 
isPredictingpublic boolean isPredicting()
 
-