Class EntityTicker
java.lang.Object
ac.boar.anticheat.prediction.ticker.base.EntityTicker
- Direct Known Subclasses:
LivingTicker
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleanvoidbaseTick()final BounceGravityCorrectiondoSelfMove(Vec3 vec3) fluidPushFor(Box bounds) The flow push that LiquidPhysicsSystem::_liquidBlockFetch (0x104aa22d8) gives a box, or zero.voidtick()booleantouchesWater(Box bounds) The client's WasInWaterFlag for a vehicle box (LiquidPhysicsSystem::_liquidBlockFetch 0x104aa22d8 -> doInWaterSensing 0x104a53828).protected void
-
Field Details
-
player
-
-
Constructor Details
-
EntityTicker
public EntityTicker()
-
-
Method Details
-
tick
public void tick() -
baseTick
public void baseTick() -
updateHeadInWater
protected void updateHeadInWater() -
applyWaterPushAfterTeleport
public boolean applyWaterPushAfterTeleport() -
touchesWater
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
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
-