Class CompensatedWorldImpl

java.lang.Object
ac.boar.anticheat.compensated.world.base.CompensatedWorld
ac.boar.anticheat.compensated.world.CompensatedWorldImpl

public class CompensatedWorldImpl extends CompensatedWorld
  • Constructor Details

    • CompensatedWorldImpl

      public CompensatedWorldImpl(BoarPlayer player)
  • Method Details

    • trackBlockReads

      public CompensatedWorldImpl.KnownBlockReads trackBlockReads()
    • observeBlockRead

      public final void observeBlockRead(int x, int y, int z, int layer)
      Records one block read for the open KnownBlockReads, if any. getRawBlockAt calls it on every read. Code that reads through getKnownRawBlockAt instead calls it itself. It looks up where the block data came from, so callers pass only the position and layer.
    • getRawBlockAt

      public int getRawBlockAt(int x, int y, int z, int layer)
      Overrides:
      getRawBlockAt in class CompensatedWorld
    • noCollision

      public boolean noCollision(Box aabb)
    • getFluidState

      public FluidState getFluidState(org.cloudburstmc.math.vector.Vector3i vec3)
    • getFluidState

      public FluidState getFluidState(Mutable mutable)
    • getFluidState

      public FluidState getFluidState(int x, int y, int z)
    • collectMovementColliders

      public List<CollisionRecord> collectMovementColliders(Box volume)
    • collectColliders

      public List<Box> collectColliders(List<Box> list, Box aABB)
    • getEntityCollisions

      public List<Box> getEntityCollisions(Box query)
    • nearbyDepenetrationMagnitude

      public Vec3 nearbyDepenetrationMagnitude(Box moverBox)
    • setCollisionShift

      public void setCollisionShift(EntityCache entity, float y)
    • clearCollisionShift

      public void clearCollisionShift()
    • trustedBoatCollisionBox

      public Box trustedBoatCollisionBox(EntityCache cache)
      Boat shape for a player on foot. Uses the same boats and saved shape as the solid-entity query, but has no fallback (returns null instead).
    • hasChunksAt

      public boolean hasChunksAt(int i, int j, int k, int l)