Class BlockStatePredictionHandler
java.lang.Object
com.zenith.cache.data.chunk.BlockStatePredictionHandler
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()intvoidendPredictionsUpTo(int sequence) booleanvoidretainKnownServerState(int posX, int posY, int posZ, int blockStateId, double playerX, double playerY, double playerZ) booleanupdateKnownServerState(int posX, int posY, int posZ, int blockStateId)
-
Constructor Details
-
BlockStatePredictionHandler
public BlockStatePredictionHandler()
-
-
Method Details
-
retainKnownServerState
public void retainKnownServerState(int posX, int posY, int posZ, int blockStateId, double playerX, double playerY, double playerZ) -
updateKnownServerState
public boolean updateKnownServerState(int posX, int posY, int posZ, int blockStateId) -
endPredictionsUpTo
public void endPredictionsUpTo(int sequence) -
startPredicting
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
currentSequence
public int currentSequence() -
abortPrediction
public void abortPrediction() -
isPredicting
public boolean isPredicting()
-