Class CompensatedWorldImpl.KnownBlockReads

java.lang.Object
ac.boar.anticheat.compensated.world.CompensatedWorldImpl.KnownBlockReads
All Implemented Interfaces:
AutoCloseable
Enclosing class:
CompensatedWorldImpl

public final class CompensatedWorldImpl.KnownBlockReads extends Object implements AutoCloseable
Tracks the block reads made while it is open (from trackBlockReads to close). Callers wrap anything from one collision query to a whole boat tick (BoatTicker.rerun). known() is true only when at least one block was read and every read hit known chunk data and a known block mapping. A collision scan that reaches an unloaded chunk or leaves the world height also makes it false. It never changes what collision returns.
  • Constructor Details

    • KnownBlockReads

      public KnownBlockReads()
  • Method Details

    • known

      public boolean known()
    • close

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