Interface MendingCandidates.Candidate

Enclosing class:
MendingCandidates

public static interface MendingCandidates.Candidate
One mendable item plus how to persist its repair.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called after stack() is repaired; save and sync the source (write it back or mark it dirty).
    net.minecraft.world.item.ItemStack
    The stack repaired in place if this candidate is chosen.
  • Method Details

    • stack

      net.minecraft.world.item.ItemStack stack()
      The stack repaired in place if this candidate is chosen.
    • onRepaired

      void onRepaired()
      Called after stack() is repaired; save and sync the source (write it back or mark it dirty). Runs once per orb, and only if this candidate was the one chosen and repaired.