Package net.mcreator.util.yaml
Class AdaptiveYamlMergePolicy
java.lang.Object
net.mcreator.util.yaml.AdaptiveYamlMergePolicy
- All Implemented Interfaces:
YamlMerge.MergePolicy
-
Field Summary
Fields inherited from interface net.mcreator.util.yaml.YamlMerge.MergePolicy
DEFAULT
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.mcreator.util.yaml.YamlMerge.MergePolicy
mergeScalar
-
Constructor Details
-
AdaptiveYamlMergePolicy
-
-
Method Details
-
mergeList
Merges two lists. The default implementation appends the addition list to the existing list. If the lists contain maps with a specified unique key, it merges them based on the merge policy for each entry. Possible merge policies (merging is done for every plugin depending on plugin weight): - append (default): adds the entry to the end of the list - append_start: adds the entry to the start of the list - remove_all: removes all entries that match the unique key and does not add the entry - override_all: removes all entries that match the unique key and adds the entryKeep in mind that a plugin evaluated after this plugin can re-add an entry this plugin requested deletion of
- Specified by:
mergeList
in interfaceYamlMerge.MergePolicy
- Throws:
Exception
-