Consolidate registerTileEntity and registerBlock for tile entities into a single helper method