Exlll / ConfigLib

A Minecraft library for saving, loading, updating, and commenting YAML configuration files
MIT License
135 stars 17 forks source link

Add option to ignore fields from serialization #11

Closed Silthus closed 2 years ago

Silthus commented 4 years ago

Sometimes it is useful to ignore certain fields from serialization and loading. That would allow the reuse of business classes via the @ConfigurationElement annotation.

This also allows adding internal fields to configs that should not be stored or loaded.

I will send a PR for that shortly, implementing a @Ignore annotation that gets added to the default filter list.

Exlll commented 2 years ago

This annotation is now available with version 3.