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()
RegistryDelegate
get
in interface RegistryDelegate<T>
public ResourceLocation name()
RegistryDelegate
name
in interface RegistryDelegate<T>
public java.lang.Class<T> type()
RegistryDelegate
type
in interface RegistryDelegate<T>
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object