Allow getting integer value for each color

This is needed for scoreboards, which for some reason still use these.