Make compatibility object with EcoEnchant and Enchant² use the api.

Abstract material group now have varargs "addAll" function.
This commit is contained in:
alexcrea 2024-07-08 23:24:39 +02:00
parent 1bd3328281
commit bcd8b6ae6e
No known key found for this signature in database
GPG key ID: 43FD265DB0DBF91F
7 changed files with 100 additions and 79 deletions

View file

@ -343,4 +343,13 @@ public class ConflictBuilder {
return clone;
}
/**
* Register this conflict.
* Equivalent to {@link ConflictAPI#addConflict(ConflictBuilder)}
* @return True if successful.
*/
public boolean registerIfAbsent(){
return ConflictAPI.addConflict(this);
}
}