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.
-
必需元素概要
所需元素修饰符和类型必需的元素说明The 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()
.
-
元素详细资料
-
registryName
String registryNameThe name of the registry to load registry entries from. This string is parsed as aResourceLocation
and can contain a namespace.- 返回:
- 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
.- 返回:
- a name in the form of a
ResourceLocation
-