public abstract class RegistryAPI<V>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
backend |
protected ResourceLocationAPI<?> |
registryKey |
protected java.lang.Class<V> |
type |
| Modifier | Constructor and Description |
|---|---|
protected |
RegistryAPI(java.lang.Object backend,
java.lang.Class<V> type,
ResourceLocationAPI<?> registryKey) |
| Modifier and Type | Method and Description |
|---|---|
<B> B |
getBackend() |
abstract ResourceLocationAPI<?> |
getKey(V value) |
@Nullable ResourceLocationAPI<?> |
getKeyNullable(V value) |
abstract java.util.Collection<ResourceLocationAPI<?>> |
getKeys() |
abstract V |
getValue(ResourceLocationAPI<?> key) |
V |
getValueNullable(ResourceLocationAPI<?> key) |
abstract java.util.Collection<V> |
getValues() |
abstract boolean |
hasKey(ResourceLocationAPI<?> key) |
abstract boolean |
hasValue(V value) |
protected final java.lang.Class<V> type
protected final ResourceLocationAPI<?> registryKey
protected final java.lang.Object backend
protected RegistryAPI(java.lang.Object backend,
java.lang.Class<V> type,
ResourceLocationAPI<?> registryKey)
public <B> B getBackend()
public abstract ResourceLocationAPI<?> getKey(V value)
public abstract java.util.Collection<ResourceLocationAPI<?>> getKeys()
@Nullable public @Nullable ResourceLocationAPI<?> getKeyNullable(V value)
public abstract V getValue(ResourceLocationAPI<?> key)
public abstract java.util.Collection<V> getValues()
@Nullable public V getValueNullable(ResourceLocationAPI<?> key)
public abstract boolean hasKey(ResourceLocationAPI<?> key)
public abstract boolean hasValue(V value)