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
-
Element Details
-
value
String valueIf used on a class, this represents a modid only. If used on a field, it represents a name, which can be abbreviated or complete. Abbreviated names derive their modid from an enclosing ObjectHolder at the class level.- Returns:
- either a modid or a name based on the rules above
-