public class VersionedRegistry<V> extends AbstractMappedRegistry<Integer,V,Map<Integer,V>>
| Modifier | Constructor and Description |
|---|---|
protected |
VersionedRegistry(I input,
RegistryLoader<I,Map<Integer,V>> registryLoader) |
| Modifier and Type | Method and Description |
|---|---|
static <I,V> VersionedRegistry<V> |
create(I input,
RegistryLoader<I,Map<Integer,V>> registryLoader) |
static <I,V> VersionedRegistry<V> |
create(I input,
Supplier<RegistryLoader<I,Map<Integer,V>>> registryLoader) |
static <I,V> VersionedRegistry<V> |
create(RegistryLoader<I,Map<Integer,V>> registryLoader) |
static <I,V> VersionedRegistry<V> |
create(Supplier<RegistryLoader<I,Map<Integer,V>>> registryLoader) |
V |
forVersion(int version) |
get, getOrDefault, registerprotected VersionedRegistry(I input,
RegistryLoader<I,Map<Integer,V>> registryLoader)
public V forVersion(int version)
public static <I,V> VersionedRegistry<V> create(RegistryLoader<I,Map<Integer,V>> registryLoader)
public static <I,V> VersionedRegistry<V> create(I input, RegistryLoader<I,Map<Integer,V>> registryLoader)
public static <I,V> VersionedRegistry<V> create(Supplier<RegistryLoader<I,Map<Integer,V>>> registryLoader)
public static <I,V> VersionedRegistry<V> create(I input, Supplier<RegistryLoader<I,Map<Integer,V>>> registryLoader)
Copyright © 2021 GeyserMC. All rights reserved.