mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
21 lines
462 B
Java
21 lines
462 B
Java
package net.draycia.carbon.api;
|
|
|
|
import net.kyori.registry.DefaultedRegistryGetter;
|
|
import org.checkerframework.checker.nullness.qual.NonNull;
|
|
|
|
/**
|
|
* An extension of the DefaultedRegistryGetter that declares a defaultValue method
|
|
* @param <K>
|
|
* @param <V>
|
|
*/
|
|
public interface DefaultedKeyValueRegistry<K, V> extends DefaultedRegistryGetter<K, V> {
|
|
|
|
/**
|
|
* Gets the default value.
|
|
*
|
|
* @return the default value
|
|
*/
|
|
@NonNull V defaultValue();
|
|
|
|
}
|