Class EntityTicker

java.lang.Object
ac.boar.anticheat.prediction.ticker.base.EntityTicker
Direct Known Subclasses:
LivingTicker

public class EntityTicker extends Object
  • Field Details

  • Constructor Details

    • EntityTicker

      public EntityTicker()
  • Method Details

    • tick

      public void tick()
    • baseTick

      public void baseTick()
    • updateHeadInWater

      protected void updateHeadInWater()
    • applyWaterPushAfterTeleport

      public boolean applyWaterPushAfterTeleport()
    • touchesWater

      public boolean touchesWater(Box bounds)
      The client's WasInWaterFlag for a vehicle box (LiquidPhysicsSystem::_liquidBlockFetch 0x104aa22d8 -> doInWaterSensing 0x104a53828). Same contact scan as updateWaterState. The flag is set only when the lava scan finds nothing, so a box touching lava is never "in water". Used for a steered horse (HorseTicker). Read-only: no player fluid state change, no push.
    • fluidPushFor

      public Vec3 fluidPushFor(Box bounds)
      The flow push that LiquidPhysicsSystem::_liquidBlockFetch (0x104aa22d8) gives a box, or zero. Read-only. Used for a driven boat (BoatTicker.simulate) and a steered horse (HorseTicker). The client pushes them with the same code and speed as a player, at the start of their tick.
    • applyEffectsFromBlocks

      protected void applyEffectsFromBlocks()
    • doSelfMove

      public final BounceGravityCorrection doSelfMove(Vec3 vec3)