Package net.minecraftforge.registries
Annotation Type ObjectHolder
-
@Retention(RUNTIME) @Target({TYPE,FIELD}) public @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
Required Elements Modifier and Type Required Element Description java.lang.String
value
If used on a class, this represents a modid only.
-
-
-
Element Detail
-
value
java.lang.String value
If 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
-
-