Registering the Block Item
The API includes a helper for registering a block item:
DoorBellApi.registerBlockItem(
MyMod.id("oak_door_bell_switch"),
OAK_DOOR_BELL_SWITCH
);
This is simply a convenience method. You can also register the item yourself using normal Minecraft registration.