Package net.minecraftforge.registries
Annotation Interface ObjectHolder
ObjectHolder can be used to automatically populate public static final fields with entries
from the registry. These values can then be referred within mod code directly.
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionThe name of the registry to load registry entries from.Represents a name in the form of aResourceLocation
which points to a registry object from the registry given byregistryName()
.
-
Element Details
-
registryName
String registryNameThe name of the registry to load registry entries from. This string is parsed as aResourceLocation
and can contain a namespace.- Returns:
- the registry name
-
value
String valueRepresents a name in the form of aResourceLocation
which points to a registry object from the registry given byregistryName()
. Must specify the modid if not inside a class annotated withMod
.- Returns:
- a name in the form of a
ResourceLocation
-