Class OrBoolean

java.lang.Object
me.nabdev.pathfinding.autos.booleans.OrBoolean
All Implemented Interfaces:
AutoBoolean

public class OrBoolean extends Object implements AutoBoolean
An auto boolean that returns true if any of its children are true
  • Constructor Details

    • OrBoolean

      public OrBoolean()
  • Method Details

    • getSupplier

      public BooleanSupplier getSupplier(BooleanSupplier... children)
      Description copied from interface: AutoBoolean
      Get the boolean supplier for this AutoBoolean
      Specified by:
      getSupplier in interface AutoBoolean
      Parameters:
      children - The boolean suppliers to use in the group
      Returns:
      The boolean supplier for this AutoBoolean