Class EatDeferral

java.lang.Object
privbot.mechanics.EatDeferral

public final class EatDeferral extends Object
Bounded non-critical food timing. Idle predictions and the remembered start of a deferral are supplied by the owning policy, not inferred from a click. This rule does not select or dispatch an item.
  • Method Details

    • decide

      public static EatDeferral.Decision decide(int tick, Boolean due, Boolean ready, Boolean critical, Integer idleTick, Integer deferredSince)
      A due, ready eat may be deferred at most two ticks toward a known later idle tick. A critical decision bypasses the deferral. Null due, readiness or critical is unknown; null idleTick means no idle tick was predicted. A DEFER result's deferredSince should be retained only while the same food decision remains in progress.