Registers a class based on a type and name.
The type of the plugin. (e.g. Field, Renderer)
The plugin's name. (Ex. field_angle, geras)
The class or object to register.
Optional
True to prevent an error when overriding an already registered item.
if the type or name is empty, a name with the given type has already been registered, or if the given class or object is not valid for it's type.
Registers a class based on a type and name.