code: public static EnumDyeColor getColor(IBlockState state)
  	{
  		ColorComponent cc = IComponent.getComponent(ColorComponent.class, state.getBlock());
  		if (cc == null)
  			return EnumDyeColor.WHITE;
  
  		PropertyEnum<EnumDyeColor> property = cc.getProperty();
  		if (property == null || !state.getProperties().containsKey(property))
  			return EnumDyeColor.WHITE;
  
  		return state.getValue(property);
  	}
docs: Gets the {@link EnumDyeColor color} for the {@link IBlockState}.
  
  @param state the state
  @return the EnumDyeColor, null if the block is not {@link ColorComponent}