Class ExactlyOneZeroValidator

java.lang.Object
com.hypixel.hytale.server.npc.asset.builder.validators.Validator
com.hypixel.hytale.server.npc.asset.builder.validators.ExactlyOneZeroValidator

public class ExactlyOneZeroValidator extends Validator
  • Method Details

    • test

      public static boolean test(double value1, double value2)
    • formatErrorMessage

      @Nonnull public static String formatErrorMessage(String attribute1, double value1, String attribute2, double value2, String context)
    • errorMessage

      @Nonnull public String errorMessage(double value1, double value2, String context)
    • withAttributes

      @Nonnull public static ExactlyOneZeroValidator withAttributes(String attribute1, String attribute2)