ILocalizedNameSupplier

Link to ilocalizednamesupplier

The ILocalizedNameSupplier function is used to programmatically determine an Item's display name.

diese Klasse importieren

Link to diese-klasse-importieren

If you want to import the function's class, here you go:

ZenScript
Copy
import mods.contenttweaker.LocalizedNameSupplier;

The function setup

Link to the-function-setup

The function returns a string and takes an IItemStack as single input parameter.

ZenScript
Copy
item.setLocalizedNameSupplier(function(itemStack) {
    return "mySuperItem";
});