Interface IDeliverymanRequestable

All Superinterfaces:
IRequestable
All Known Implementing Classes:
AbstractDeliverymanRequestable, Delivery, Pickup

public interface IDeliverymanRequestable extends IRequestable
Marker interface for requestables handled by deliverymen.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the priority of the Requestable.
    void
    This will increment the priority due to the aging algorithm.

    Methods inherited from interface com.minecolonies.api.colony.requestsystem.requestable.IRequestable

    getSuperClasses
  • Method Details

    • getPriority

      int getPriority()
      Returns the priority of the Requestable. The higher the priority, the more urgent it is and the faster a deliveryman will handle it.
      Returns:
      The current priority of the request
    • incrementPriorityDueToAging

      void incrementPriorityDueToAging()
      This will increment the priority due to the aging algorithm. This is important because it prevents starvation, making older requests successively more important.