RegisterMode

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.

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.