Class VehicleTicker
java.lang.Object
ac.boar.anticheat.prediction.vehicle.VehicleTicker
- Direct Known Subclasses:
BoatTicker,FollowVehicleTicker,HorseTicker
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanclientSimulates(BoarPlayer player, VehicleData vehicle) protected static voiddropHorseForcedMove(BoarPlayer player, VehicleData vehicle, String reason) static VehicleTickerforVehicle(BoarPlayer player, VehicleData vehicle) protected final voidholdWithoutVehicle(String reason) abstract Stringname()static booleanserverDriven(BoarPlayer player, VehicleData vehicle) protected static voidslowDown(VehicleData vehicle, float x, float y, float z) protected static voidslowDownInCobweb(VehicleData vehicle) protected static voidslowDownInPowderSnow(VehicleData vehicle) protected static Vec3slowDownOnHoney(int honey, float vx, float vy, float vz) protected static voidstopHorseTravel(BoarPlayer player, VehicleData vehicle, String reason, EntityCache groundActor) protected static Vec3stopOnCollision(BoarPlayer player, Vec3 movement, Vec3 moved, float vx, float vy, float vz) abstract voidtick()
-
Field Details
-
player
-
vehicle
-
-
Constructor Details
-
VehicleTicker
public VehicleTicker()
-
-
Method Details
-
tick
public abstract void tick() -
name
-
holdWithoutVehicle
-
stopHorseTravel
protected static void stopHorseTravel(BoarPlayer player, VehicleData vehicle, String reason, EntityCache groundActor) -
dropHorseForcedMove
-
slowDown
-
slowDownInCobweb
-
slowDownInPowderSnow
-
stopOnCollision
protected static Vec3 stopOnCollision(BoarPlayer player, Vec3 movement, Vec3 moved, float vx, float vy, float vz) -
slowDownOnHoney
-
clientSimulates
-
serverDriven
-
forVehicle
-