Class TakableRequirement<V>

    • Constructor Detail

      • TakableRequirement

        protected TakableRequirement​(RequirementBuilder.Input input)
        Create a new requirement
        Parameters:
        input - the input
    • Method Detail

      • getDefaultTake

        protected abstract boolean getDefaultTake()
        Get the default "take" state
        Returns:
        the default "take" state
      • getDefaultValue

        protected abstract Object getDefaultValue()
        Get the default value
        Returns:
        the default value
      • successConditional

        public Requirement.Result successConditional​(ProcessApplier applier)
        Get the success result with the conditional "take" state
        Parameters:
        applier - the applier
        Returns:
        the success result
      • successConditional

        public Requirement.Result successConditional​(Consumer<UUID> applier)
        Get the success result with the conditional "take" state
        Parameters:
        applier - the applier
        Returns:
        the success result