OverlordsIII / VillagerNames

A mod that adds names to villagers and golems
https://www.curseforge.com/minecraft/mc-mods/villager-names-for-fabric/
Creative Commons Zero v1.0 Universal
8 stars 7 forks source link

Rewrite naming logic #22

Open Fourmisain opened 3 years ago

Fourmisain commented 3 years ago

Note: This is in its current form completely untested!

As announced in #19, this should fix all odd naming issues.

The main logic is in: getTitledVillagerName for getting the name in the "Forename <Surname> <the Title>" schema, depending on the config. parseFullName, parseForename and parseSurname to get the components from an existing name again.

There's no create name methods anymore, only update methods, which take everything into account.