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 SummaryRequired ElementsModifier and TypeRequired ElementDescriptionThe name of the registry to load registry entries from.Represents a name in the form of aResourceLocationwhich points to a registry object from the registry given byregistryName().
- 
Element Details- 
registryNameString registryNameThe name of the registry to load registry entries from. This string is parsed as aResourceLocationand can contain a namespace.- Returns:
- the registry name
 
- 
valueString valueRepresents a name in the form of aResourceLocationwhich 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
 
 
-