FarmControl
FarmControl copied to clipboard
Add naming support
Added support for controlling named mobs. Also ran the IDE optimizer through the project to make everything as uniform as possible. Updated some libraries to their latest version.
How the naming works:
- A new name predicate was added to the GroupDefinition class just like typePredicate and excludePredicate, this predicate also works the same way as the others in the EntityGroupResult class.
- If a name is given to a profile then only mobs with that exact name (and optional other criteria) will be counted towards that profile.
- A name can start or end with a '*' which is a placeholder for anything (eg:
*-villager=<anything here>-villagerwill be counted towards this group).
Hey, thanks for opening a PR!
I'm not opposed to the idea, but my preference would be for such an option to be included in an "extras" add-on once there is an API for the plugin. The potential uses just seem a bit niche