Creates a new instance of the Registry class.
The type of the items that the registry will hold.
The name of the registry.
Optional
The field to use as the ID of items in the registry.
The mode of the registry.
A new instance of the Registry class.
Creates a new instance of the Registry class.