Register Mode
Registration mode for game objects.
This enum defines how objects should be registered with Minecraft's registries, particularly in relation to the hot-reload system.
GLOBAL: Register during mod initialization, cannot be hot-reloaded. Use this for objects that need to persist across reloads or are required for the mod to function properly.
RELOADABLE: Register with hot-reload support. Objects registered this way can be redefined during script reloads. Use this for content that may change during development or configuration.
AUTO: Automatically choose based on current load state. During initial mod loading, behaves like GLOBAL. After initialization, behaves like RELOADABLE. This is the recommended mode for most use cases.
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.