Class WalkFluidDepth

java.lang.Object
com.hypixel.hytale.server.npc.util.WalkFluidDepth

public final class WalkFluidDepth extends Object
Computes fluid depth constraints and wading thresholds for walking NPCs.
  • 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)