Interface MendingCandidates.Candidate
- Enclosing class:
MendingCandidates
public static interface MendingCandidates.Candidate
One mendable item plus how to persist its repair.
-
Method Details
-
stack
net.minecraft.world.item.ItemStack stack()The stack repaired in place if this candidate is chosen. -
onRepaired
void onRepaired()Called afterstack()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.
-