M - the value being held by the registrypublic class SimpleRegistry<M> extends Registry<M>
| Modifier and Type | Method and Description |
|---|---|
static <I,M> SimpleRegistry<M> |
create(I input,
RegistryLoader<I,M> registryLoader)
Creates a new registry with the given
RegistryLoader and input. |
static <I,M> SimpleRegistry<M> |
create(I input,
Supplier<RegistryLoader<I,M>> registryLoader)
Creates a new registry with the given
RegistryLoader supplier
and input. |
static <I,M> SimpleRegistry<M> |
create(RegistryLoader<I,M> registryLoader)
Creates a new registry with the given
RegistryLoader. |
static <I,M> SimpleRegistry<M> |
create(Supplier<RegistryLoader<I,M>> registryLoader)
Creates a new registry with the given
RegistryLoader supplier. |
public static <I,M> SimpleRegistry<M> create(Supplier<RegistryLoader<I,M>> registryLoader)
RegistryLoader supplier. The
input type is not specified here, meaning the loader return type is either
predefined, or the registry is populated at a later point.I - the input typeM - the returned mappings typeregistryLoader - the registry loader supplierpublic static <I,M> SimpleRegistry<M> create(I input, Supplier<RegistryLoader<I,M>> registryLoader)
RegistryLoader supplier
and input.I - the input typeM - the returned mappings typeinput - the inputregistryLoader - the registry loader supplierpublic static <I,M> SimpleRegistry<M> create(RegistryLoader<I,M> registryLoader)
RegistryLoader. The
input type is not specified here, meaning the loader return type is either
predefined, or the registry is populated at a later point.I - the input typeM - the returned mappings typeregistryLoader - the registry loaderpublic static <I,M> SimpleRegistry<M> create(I input, RegistryLoader<I,M> registryLoader)
RegistryLoader and input.I - the input typeM - the returned mappings typeinput - the inputregistryLoader - the registry loaderCopyright © 2021 GeyserMC. All rights reserved.