public abstract class ForgeRegistryEntry<V extends IForgeRegistryEntry<V>> extends java.lang.Object implements IForgeRegistryEntry<V>
Modifier and Type | Field and Description |
---|---|
IRegistryDelegate<V> |
delegate |
private ResourceLocation |
registryName |
private com.google.common.reflect.TypeToken<V> |
token |
Constructor and Description |
---|
ForgeRegistryEntry() |
Modifier and Type | Method and Description |
---|---|
ResourceLocation |
getRegistryName()
A unique identifier for this entry, if this entry is registered already it will return it's official registry name.
|
java.lang.Class<V> |
getRegistryType()
Determines the type for this entry, used to look up the correct registry in the global registries list as there can only be one
registry per concrete class.
|
V |
setRegistryName(ResourceLocation name)
Sets a unique name for this Item.
|
V |
setRegistryName(java.lang.String name) |
V |
setRegistryName(java.lang.String modID,
java.lang.String name) |
private final com.google.common.reflect.TypeToken<V extends IForgeRegistryEntry<V>> token
public final IRegistryDelegate<V extends IForgeRegistryEntry<V>> delegate
private ResourceLocation registryName
public final V setRegistryName(java.lang.String name)
public final V setRegistryName(ResourceLocation name)
IForgeRegistryEntry
setRegistryName
in interface IForgeRegistryEntry<V extends IForgeRegistryEntry<V>>
name
- Unique registry namepublic final V setRegistryName(java.lang.String modID, java.lang.String name)
@Nullable public final ResourceLocation getRegistryName()
IForgeRegistryEntry
getRegistryName
in interface IForgeRegistryEntry<V extends IForgeRegistryEntry<V>>
public final java.lang.Class<V> getRegistryType()
IForgeRegistryEntry
getRegistryType
in interface IForgeRegistryEntry<V extends IForgeRegistryEntry<V>>