refreshPresentation

public ItemStack refreshPresentation(ItemStack source)

Redraws known/inactive entries without changing their identities or levels.


public ItemStack refreshPresentation(ItemStack source, UnaryOperator<List<String>> rebuildHostLore)

Rebuilds host lore around the validated shared section, retaining its position. The callback receives immutable host-only text and must return non-null lines. The source item is never mutated.


public ItemStack refreshPresentation(ItemStack source, UnaryOperator<List<String>> rebuildHostLore, ToIntFunction<List<String>> enchantmentPosition)

Rebuilds host lore and places the shared enchantment section at the supplied host-line index. The position callback receives the rebuilt, immutable host lore. Return -1 to hide the section. Subsequent shared redraws and upgrades retain this position until the host chooses another.