Record Class AgingDefinition

java.lang.Object
java.lang.Record
ke.ric.api.aging.AgingDefinition

public record AgingDefinition(String id, String inputItemId, List<AgingStage> stages, String outputItemId, int outputYield, Set<Integer> allowedDynamicYields, boolean continuous, AgingCompletion completion, AgingOutcomeResolver outcomeResolver, AgingItemUpdater itemUpdater, AgingLegacyProgressMapper legacyProgressMapper, Map<String, AgingEnvironmentProbe> exposureProbes, AgingItemMatcher itemMatcher, AgingCompletionPresenter completionPresenter, boolean addonManagedLore) extends Record
Immutable addon-supplied aging recipe owned by the registering addon.
  • Constructor Details

  • Method Details

    • accepts

      public boolean accepts(org.bukkit.inventory.ItemStack item)
      Validate custom matching even when an item already carries aging progress.
    • builder

      public static AgingDefinition.Builder builder()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • inputItemId

      public String inputItemId()
      Returns the value of the inputItemId record component.
      Returns:
      the value of the inputItemId record component
    • stages

      public List<AgingStage> stages()
      Returns the value of the stages record component.
      Returns:
      the value of the stages record component
    • outputItemId

      public String outputItemId()
      Returns the value of the outputItemId record component.
      Returns:
      the value of the outputItemId record component
    • outputYield

      public int outputYield()
      Returns the value of the outputYield record component.
      Returns:
      the value of the outputYield record component
    • allowedDynamicYields

      public Set<Integer> allowedDynamicYields()
      Returns the value of the allowedDynamicYields record component.
      Returns:
      the value of the allowedDynamicYields record component
    • continuous

      public boolean continuous()
      Returns the value of the continuous record component.
      Returns:
      the value of the continuous record component
    • completion

      public AgingCompletion completion()
      Returns the value of the completion record component.
      Returns:
      the value of the completion record component
    • outcomeResolver

      public AgingOutcomeResolver outcomeResolver()
      Returns the value of the outcomeResolver record component.
      Returns:
      the value of the outcomeResolver record component
    • itemUpdater

      public AgingItemUpdater itemUpdater()
      Returns the value of the itemUpdater record component.
      Returns:
      the value of the itemUpdater record component
    • legacyProgressMapper

      public AgingLegacyProgressMapper legacyProgressMapper()
      Returns the value of the legacyProgressMapper record component.
      Returns:
      the value of the legacyProgressMapper record component
    • exposureProbes

      public Map<String, AgingEnvironmentProbe> exposureProbes()
      Returns the value of the exposureProbes record component.
      Returns:
      the value of the exposureProbes record component
    • itemMatcher

      public AgingItemMatcher itemMatcher()
      Returns the value of the itemMatcher record component.
      Returns:
      the value of the itemMatcher record component
    • completionPresenter

      public AgingCompletionPresenter completionPresenter()
      Returns the value of the completionPresenter record component.
      Returns:
      the value of the completionPresenter record component
    • addonManagedLore

      public boolean addonManagedLore()
      Returns the value of the addonManagedLore record component.
      Returns:
      the value of the addonManagedLore record component