public static final class RegistryDelegate.Delegate<T> extends java.lang.Object implements RegistryDelegate<T>
RegistryDelegate.Delegate<T>| Constructor and Description |
|---|
Delegate(T referent,
java.lang.Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
T |
get()
Get the referent pointed at by this delegate.
|
int |
hashCode() |
ResourceLocation |
name()
Get the unique resource location for this delegate.
|
java.lang.Class<T> |
type()
Get the delegate type.
|
public T get()
RegistryDelegateget in interface RegistryDelegate<T>public ResourceLocation name()
RegistryDelegatename in interface RegistryDelegate<T>public java.lang.Class<T> type()
RegistryDelegatetype in interface RegistryDelegate<T>public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object