Class BlockStatePredictionHandler

java.lang.Object
net.minecraft.client.multiplayer.prediction.BlockStatePredictionHandler
All Implemented Interfaces:
AutoCloseable

public class BlockStatePredictionHandler extends Object implements AutoCloseable
  • Field Details

    • serverVerifiedStates

      private final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<BlockStatePredictionHandler.ServerVerifiedState> serverVerifiedStates
    • currentSequenceNr

      private int currentSequenceNr
    • isPredicting

      private boolean isPredicting
  • Constructor Details

    • BlockStatePredictionHandler

      public BlockStatePredictionHandler()
  • Method Details

    • retainKnownServerState

      public void retainKnownServerState(BlockPos p_233868_, BlockState p_233869_, LocalPlayer p_233870_)
    • updateKnownServerState

      public boolean updateKnownServerState(BlockPos p_233865_, BlockState p_233866_)
    • endPredictionsUpTo

      public void endPredictionsUpTo(int p_233857_, ClientLevel p_233858_)
    • startPredicting

      public BlockStatePredictionHandler startPredicting()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • currentSequence

      public int currentSequence()
    • isPredicting

      public boolean isPredicting()