Contents
Class WalkFluidDepth
java.lang.Object
com.hypixel.hytale.server.npc.util.WalkFluidDepth
Computes fluid depth constraints and wading thresholds for walking NPCs.
-
Method Summary
Modifier and TypeMethodDescriptionstatic doublecalculateConstraintDepth(double movementThreshold, double eyeHeight, boolean breathesInAir, boolean breathesInWater) static booleanrequiresWading(double originY, double maximumFluidSurfaceY, double constraintDepth)
-
Method Details
-
calculateConstraintDepth
public static double calculateConstraintDepth(double movementThreshold, double eyeHeight, boolean breathesInAir, boolean breathesInWater) -
requiresWading
public static boolean requiresWading(double originY, double maximumFluidSurfaceY, double constraintDepth)
-