mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
Replace registerIfAbsent by registerIfNew and make registerIfAbsent follow its name better
This commit is contained in:
parent
ece369ae55
commit
4c7ee760a6
1 changed files with 10 additions and 1 deletions
|
|
@ -359,10 +359,19 @@ public class ConflictBuilder {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register this conflict if not yet registered.
|
* Register this conflict if not yet registered.
|
||||||
* Equivalent to {@link ConflictAPI#addConflict(ConflictBuilder)}
|
* Equivalent to {@link ConflictAPI#addConflict(ConflictBuilder, boolean) ConflictAPI.addConflict(this, true)}}
|
||||||
* @return True if successful.
|
* @return True if successful.
|
||||||
*/
|
*/
|
||||||
public boolean registerIfAbsent(){
|
public boolean registerIfAbsent(){
|
||||||
|
return ConflictAPI.addConflict(this, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Register this conflict if not yet registered or deleted.
|
||||||
|
* Equivalent to {@link ConflictAPI#addConflict(ConflictBuilder) ConflictAPI.addConflict(this)}
|
||||||
|
* @return True if successful.
|
||||||
|
*/
|
||||||
|
public boolean registerIfNew(){
|
||||||
return ConflictAPI.addConflict(this);
|
return ConflictAPI.addConflict(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue