Class BooleanImplicationValidator

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

public class BooleanImplicationValidator extends Validator
Validates that if defined members of the antecedent set are set to the antecedent state, then all members of the consequent set must be set to the consequent state. Created on 14/11/2018
  • Method Details

    • test

      public boolean test(@Nonnull boolean[] antecedents, @Nonnull boolean[] consequents)
    • errorMessage

      @Nonnull public String errorMessage()
    • withAttributes

      @Nonnull public static BooleanImplicationValidator withAttributes(String[] antecedentSet, boolean antecedentState, String[] consequentSet, boolean consequentState, boolean anyAntecedent)