mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-10 09:46:24 +00:00
Registry#add -> #register
This commit is contained in:
@@ -7,7 +7,7 @@ public interface CheckedRegistry<T> extends Registry<T> {
|
||||
* Add a value to this registry, checking whether it is present first.
|
||||
*
|
||||
* @param identifier Identifier to assign value.
|
||||
* @param value Value to add.
|
||||
* @param value Value to register.
|
||||
* @throws DuplicateEntryException If an entry with the same identifier is already present.
|
||||
*/
|
||||
void add(String identifier, T value) throws DuplicateEntryException;
|
||||
@@ -18,7 +18,7 @@ public interface CheckedRegistry<T> extends Registry<T> {
|
||||
* Use of this method is generally discouraged, as it is bad practice to overwrite registry values.
|
||||
*
|
||||
* @param identifier Identifier to assign value.
|
||||
* @param value Value to add.
|
||||
* @param value Value to register.
|
||||
* @deprecated Use of {@link #add(String, Object)} is encouraged.
|
||||
*/
|
||||
@Deprecated
|
||||
|
||||
@@ -7,15 +7,15 @@ public interface OpenRegistry<T> extends Registry<T> {
|
||||
* Add a value to this registry.
|
||||
*
|
||||
* @param identifier Identifier to assign value.
|
||||
* @param value Value to add.
|
||||
* @param value Value to register.
|
||||
*/
|
||||
boolean add(String identifier, T value);
|
||||
boolean register(String identifier, T value);
|
||||
|
||||
/**
|
||||
* Add a value to this registry, checking whether it is present first.
|
||||
*
|
||||
* @param identifier Identifier to assign value.
|
||||
* @param value Value to add.
|
||||
* @param value Value to register.
|
||||
* @throws DuplicateEntryException If an entry with the same identifier is already present.
|
||||
*/
|
||||
void addChecked(String identifier, T value) throws DuplicateEntryException;
|
||||
|
||||
Reference in New Issue
Block a user